aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2009-10-14 06:28:00 +0000
committerDan Nicolaescu2009-10-14 06:28:00 +0000
commit52964e54742df3ecd7ff5a4652274816b2abf612 (patch)
tree79ea1fb104f59906d38c3b7c93b8f85d8b2376c9
parent5ba6c2e1f0795a177ae27cc4e1390453a0842f91 (diff)
downloademacs-52964e54742df3ecd7ff5a4652274816b2abf612.tar.gz
emacs-52964e54742df3ecd7ff5a4652274816b2abf612.zip
(vc-git-dir-extra-headers): Set the branch name
correctly in the detached head case. (vc-git-print-log): Remove unused binding.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/vc-git.el7
2 files changed, 6 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b10a077b810..70c22dda440 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12009-10-14 Dan Nicolaescu <dann@ics.uci.edu> 12009-10-14 Dan Nicolaescu <dann@ics.uci.edu>
2 2
3 * vc-git.el (vc-git-dir-extra-headers): Set the branch name
4 correctly in the detached head case.
5 (vc-git-print-log): Remove unused binding.
6
3 * vc.el (vc-responsible-backend): When a directory is passed for 7 * vc.el (vc-responsible-backend): When a directory is passed for
4 for registration create a VC repository if no backend is 8 for registration create a VC repository if no backend is
5 responsible for the directory argument. 9 responsible for the directory argument.
diff --git a/lisp/vc-git.el b/lisp/vc-git.el
index fe7b95cb43a..6a757e32dad 100644
--- a/lisp/vc-git.el
+++ b/lisp/vc-git.el
@@ -421,7 +421,7 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
421 (vc-git--out-ok "config" (concat "remote." remote ".url")))))) 421 (vc-git--out-ok "config" (concat "remote." remote ".url"))))))
422 (when (string-match "\\([^\n]+\\)" remote-url) 422 (when (string-match "\\([^\n]+\\)" remote-url)
423 (setq remote-url (match-string 1 remote-url)))) 423 (setq remote-url (match-string 1 remote-url))))
424 "not (detached HEAD)") 424 (setq branch "not (detached HEAD)"))
425 ;; FIXME: maybe use a different face when nothing is stashed. 425 ;; FIXME: maybe use a different face when nothing is stashed.
426 (concat 426 (concat
427 (propertize "Branch : " 'face 'font-lock-type-face) 427 (propertize "Branch : " 'face 'font-lock-type-face)
@@ -503,10 +503,7 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
503 503
504(defun vc-git-print-log (files &optional buffer shortlog) 504(defun vc-git-print-log (files &optional buffer shortlog)
505 "Get change log associated with FILES." 505 "Get change log associated with FILES."
506 (let ((coding-system-for-read git-commits-coding-system) 506 (let ((coding-system-for-read git-commits-coding-system))
507 ;; Support both the old print-log interface that passes a
508 ;; single file, and the new one that passes a file list.
509 (flist (if (listp files) files (list files))))
510 ;; `vc-do-command' creates the buffer, but we need it before running 507 ;; `vc-do-command' creates the buffer, but we need it before running
511 ;; the command. 508 ;; the command.
512 (vc-setup-buffer buffer) 509 (vc-setup-buffer buffer)