]> git.eshelyaron.com Git - emacs.git/commit
(vc-git-mode-line-string): Don't use `replace-regexp-in-string'
authorDmitry Gutov <dgutov@yandex.ru>
Sat, 23 Apr 2016 19:16:27 +0000 (22:16 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Sat, 23 Apr 2016 19:16:40 +0000 (22:16 +0300)
commit87ee542fbc93e172d10fb742a15b2a9fdc526992
treeedd2dab368d65830376b630f798c23d841cf183c
parent5c587fdff164e8b90beb47f6da64b4884290e40a
(vc-git-mode-line-string): Don't use `replace-regexp-in-string'

* lisp/vc/vc-git.el (vc-git-mode-line-string): Use `substring'
instead of `replace-regexp-in-string', because REV can be nil
(e.g. when FILE is a directory, bug#23344), and we actually know
we only need the first 4 characters.
lisp/vc/vc-git.el