aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Pank Roulund2014-09-04 12:34:45 -0400
committerStefan Monnier2014-09-04 12:34:45 -0400
commitbaee695a8b920aa39f50768d57aae18f9ba59e70 (patch)
treeef02dfddf1e0e0a3b5c1999da23419b73c6e682b
parent9bc6bb24e58ecd0a53b7b64008f66d1b3e77a043 (diff)
downloademacs-baee695a8b920aa39f50768d57aae18f9ba59e70.tar.gz
emacs-baee695a8b920aa39f50768d57aae18f9ba59e70.zip
* lisp/vc/vc-git.el (vc-git-conflicted-files): Fix bug when git status
returns nil. Fixes: debbugs:18391
-rw-r--r--lisp/ChangeLog31
-rw-r--r--lisp/vc/vc-git.el2
2 files changed, 19 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 24adcdc13c9..b2912deb23e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-09-04 Rasmus Pank Roulund <emacs@pank.eu>
2
3 * vc/vc-git.el (vc-git-conflicted-files): Fix bug when git status
4 returns nil (bug#18391).
5
12014-09-04 Stefan Monnier <monnier@iro.umontreal.ca> 62014-09-04 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * emacs-lisp/eldoc.el (eldoc-function-argstring): Don't strip 8 * emacs-lisp/eldoc.el (eldoc-function-argstring): Don't strip
@@ -195,27 +200,27 @@
1952014-08-24 Alan Mackenzie <acm@muc.de> 2002014-08-24 Alan Mackenzie <acm@muc.de>
196 201
197 Handle C++11's "auto" and "decltype" constructions. 202 Handle C++11's "auto" and "decltype" constructions.
198 * progmodes/cc-engine.el (c-forward-type): Enhance to recognise 203 * progmodes/cc-engine.el (c-forward-type): Enhance to recognise
199 and return 'decltype. 204 and return 'decltype.
200 (c-forward-decl-or-cast-1): New let variables backup-kwd-sym, 205 (c-forward-decl-or-cast-1): New let variables backup-kwd-sym,
201 prev-kwd-sym, new-style-auto. Enhance to handle the new "auto" 206 prev-kwd-sym, new-style-auto. Enhance to handle the new "auto"
202 keyword. 207 keyword.
203 * progmodes/cc-fonts.el (c-font-lock-declarations): Handle the 208 * progmodes/cc-fonts.el (c-font-lock-declarations): Handle the
204 "decltype" keyword. 209 "decltype" keyword.
205 (c-font-lock-c++-new): Handle "decltype" constructions. 210 (c-font-lock-c++-new): Handle "decltype" constructions.
206 * progmodes/cc-langs.el (c-auto-ops, c-auto-ops-re): 211 * progmodes/cc-langs.el (c-auto-ops, c-auto-ops-re):
207 New c-lang-defconsts/defvars. 212 New c-lang-defconsts/defvars.
208 (c-haskell-op, c-haskell-op-re): New c-lang-defconsts/defvars. 213 (c-haskell-op, c-haskell-op-re): New c-lang-defconsts/defvars.
209 (c-typeof-kwds, c-typeof-key): New c-lang-defconsts/defvars. 214 (c-typeof-kwds, c-typeof-key): New c-lang-defconsts/defvars.
210 (c-typeless-decl-kwds): Append "auto" onto the C++ value. 215 (c-typeless-decl-kwds): Append "auto" onto the C++ value.
211 (c-not-decl-init-keywords): Also exclude c-typeof-kwds from value. 216 (c-not-decl-init-keywords): Also exclude c-typeof-kwds from value.
212 217
213 Make ">>" act as double template ender in C++ Mode. 218 Make ">>" act as double template ender in C++ Mode.
214 * progmodes/cc-langs.el (c->-op-cont-tokens): New lang-const split 219 * progmodes/cc-langs.el (c->-op-cont-tokens): New lang-const split
215 off from c->-op-cont-re. 220 off from c->-op-cont-re.
216 (c->-op-cont-tokens): Change to use the above. 221 (c->-op-cont-tokens): Change to use the above.
217 (c->-op-without->-cont-regexp): New lang-const. 222 (c->-op-without->-cont-regexp): New lang-const.
218 * progmodes/cc-engine.el (c-forward-<>-arglist-recur): 223 * progmodes/cc-engine.el (c-forward-<>-arglist-recur):
219 Use c->-op-without->-cont-regexp in place of c->-op-cont-tokens. 224 Use c->-op-without->-cont-regexp in place of c->-op-cont-tokens.
220 225
221 226
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index e9d55336af7..afcfd666082 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -774,7 +774,7 @@ This prompts for a branch to merge from."
774 "Return the list of files with conflicts in DIRECTORY." 774 "Return the list of files with conflicts in DIRECTORY."
775 (let* ((status 775 (let* ((status
776 (vc-git--run-command-string directory "status" "--porcelain" "--")) 776 (vc-git--run-command-string directory "status" "--porcelain" "--"))
777 (lines (split-string status "\n" 'omit-nulls)) 777 (lines (when status (split-string status "\n" 'omit-nulls)))
778 files) 778 files)
779 (dolist (line lines files) 779 (dolist (line lines files)
780 (when (string-match "\\([ MADRCU?!][ MADRCU?!]\\) \\(.+\\)\\(?: -> \\(.+\\)\\)?" 780 (when (string-match "\\([ MADRCU?!][ MADRCU?!]\\) \\(.+\\)\\(?: -> \\(.+\\)\\)?"