Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
vc-git: Ignore errors caused by a non-existent directory in vc-git-registered.
author
Alexandre Julliard
<julliard@winehq.org>
Fri, 22 Dec 2006 13:56:15 +0000
(14:56 +0100)
committer
Junio C Hamano
<junkio@cox.net>
Sat, 23 Dec 2006 07:14:43 +0000
(23:14 -0800)
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/emacs/vc-git.el
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
40f656c
)
diff --git
a/contrib/emacs/vc-git.el
b/contrib/emacs/vc-git.el
index 8b6361922fd6e6a2fcd9acb20fd54f5b645b36f0..3eb4bd19e921f293f1ed1ab1fd1bcd9f78763c4c 100644
(file)
--- a/
contrib/emacs/vc-git.el
+++ b/
contrib/emacs/vc-git.el
@@
-58,8
+58,9
@@
(with-temp-buffer
(let* ((dir (file-name-directory file))
(name (file-relative-name file dir)))
(with-temp-buffer
(let* ((dir (file-name-directory file))
(name (file-relative-name file dir)))
- (when dir (cd dir))
- (and (ignore-errors (eq 0 (call-process "git" nil '(t nil) nil "ls-files" "-c" "-z" "--" name)))
+ (and (ignore-errors
+ (when dir (cd dir))
+ (eq 0 (call-process "git" nil '(t nil) nil "ls-files" "-c" "-z" "--" name)))
(let ((str (buffer-string)))
(and (> (length str) (length name))
(string= (substring str 0 (1+ (length name))) (concat name "\0"))))))))
(let ((str (buffer-string)))
(and (> (length str) (length name))
(string= (substring str 0 (1+ (length name))) (concat name "\0"))))))))