diff options
| author | Andreas Schwab | 2012-03-28 12:12:02 +0200 |
|---|---|---|
| committer | Andreas Schwab | 2012-03-28 12:12:02 +0200 |
| commit | 38de3354b79e6d58d130adeee12a98d35b00db47 (patch) | |
| tree | f360aa37e65fb0fc8dadd177c92312c930beded9 | |
| parent | efdf29daf8de3b6c958c9390ea9bd5c0a248a5b1 (diff) | |
| download | emacs-38de3354b79e6d58d130adeee12a98d35b00db47.tar.gz emacs-38de3354b79e6d58d130adeee12a98d35b00db47.zip | |
Fixes: debbugs:11109
* vc/vc-git.el (vc-git-state): Don't try to match all of the diff
contents.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc/vc-git.el | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 65018db7e4d..57c2edcbb28 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-03-28 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * vc/vc-git.el (vc-git-state): Don't try to match all of the diff | ||
| 4 | contents. (Bug#11109) | ||
| 5 | |||
| 1 | 2012-03-27 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2012-03-27 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * emacs-lisp/avl-tree.el (avl-tree--enter-balance): Fix paren typo | 8 | * emacs-lisp/avl-tree.el (avl-tree--enter-balance): Fix paren typo |
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index bf7b7fb9e17..b71dc95dba2 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el | |||
| @@ -220,11 +220,10 @@ matching the resulting Git log output, and KEYWORDS is a list of | |||
| 220 | (let ((diff (vc-git--run-command-string | 220 | (let ((diff (vc-git--run-command-string |
| 221 | file "diff-index" "-p" "--raw" "-z" "HEAD" "--"))) | 221 | file "diff-index" "-p" "--raw" "-z" "HEAD" "--"))) |
| 222 | (if (and diff | 222 | (if (and diff |
| 223 | (string-match ":[0-7]\\{6\\} [0-7]\\{6\\} [0-9a-f]\\{40\\} [0-9a-f]\\{40\\} \\([ADMUT]\\)\0[^\0]+\0\\(\\(?:.\\|\n\\)*\\)\\'" | 223 | (string-match ":[0-7]\\{6\\} [0-7]\\{6\\} [0-9a-f]\\{40\\} [0-9a-f]\\{40\\} \\([ADMUT]\\)\0[^\0]+\0\\(.\\)?" |
| 224 | diff)) | 224 | diff)) |
| 225 | (let ((diff-letter (match-string 1 diff)) | 225 | (let ((diff-letter (match-string 1 diff))) |
| 226 | (diff-contents (match-string 2 diff))) | 226 | (if (not (match-beginning 2)) |
| 227 | (if (not (string-match "\n." diff-contents)) | ||
| 228 | ;; Empty diff: file contents is the same as the HEAD | 227 | ;; Empty diff: file contents is the same as the HEAD |
| 229 | ;; revision, but timestamps are different (eg, file | 228 | ;; revision, but timestamps are different (eg, file |
| 230 | ;; was "touch"ed). Update timestamp in index: | 229 | ;; was "touch"ed). Update timestamp in index: |