]> git.eshelyaron.com Git - emacs.git/commit
Show stash counts in button in vc-dir
authorRobert Pluim <rpluim@gmail.com>
Tue, 22 Oct 2019 07:31:15 +0000 (09:31 +0200)
committerRobert Pluim <rpluim@gmail.com>
Tue, 22 Oct 2019 07:36:17 +0000 (09:36 +0200)
commit4a9d8bdca3e502c1e87c4c50df3926c629475d39
treec927e0355a9937ec827381c2c9d328077a9c4a85
parentd45740cd9f4f9f2cc132fb81626236789a97b2c9
Show stash counts in button in vc-dir

Based on suggestions from Mattias EngdegĂ„rd.

* lisp/vc/vc-git.el (vc-git--make-button-text): New function to
generate text for stash button.
(vc-git-make-stash-button): Show stash counts.  Delete and recreate
button when toggling.
(vc-git-dir-extra-headers): Pass counts to vc-git-make-stash-button.
Treat stash count <= vc-git-show-stash as equivalent to showing entire
list.
lisp/vc/vc-git.el