]> git.eshelyaron.com Git - emacs.git/commit
* lisp/vc/vc-git.el (vc-git-working-revision): When in detached mode,
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 27 May 2013 23:11:21 +0000 (03:11 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 27 May 2013 23:11:21 +0000 (03:11 +0400)
commitf1a60a0f07666582843f324767f740b75c071fb9
tree9f2a855a99ba9895ee7e6039ca6ecc52c659f56a
parentd289938a057ab8572fc60eb5367980eeef35d600
* lisp/vc/vc-git.el (vc-git-working-revision): When in detached mode,
return the commit hash.  Also set the `vc-git-detached' property.
(vc-git--rev-parse): Extract from `vc-git-previous-revision'.
(vc-git-mode-line-string): Use the same help-echo format whether in
detached mode or not, because we know the actual revision now.  When
in detached mode, shorten the revision to 7 chars.

Fixes: debbugs:14459
lisp/ChangeLog
lisp/vc/vc-git.el