]> git.eshelyaron.com Git - emacs.git/commit
VC Git: Use vc-deduce-fileset to determine what to stash
authorSean Whitton <spwhitton@spwhitton.name>
Tue, 29 Oct 2024 11:25:31 +0000 (19:25 +0800)
committerEshel Yaron <me@eshelyaron.com>
Fri, 1 Nov 2024 13:17:22 +0000 (14:17 +0100)
commitf33f6fad2ea033da61bc78ec1cca34b234a76ba3
treed2fc742386283483a125b31fa1f065b28e89fd56
parent1432aa922cf416997c7922cc6b6ce4419a82db24
VC Git: Use vc-deduce-fileset to determine what to stash

* lisp/vc/vc-git.el (vc-git--deduce-files-for-stash): New function.
(vc-git-stash, vc-git-stash-snapshot): Use it to determine what
to stash.  Update and expand docstrings.
(vc-git-stash-snapshot): No longer unconditionally snapshot all
uncommitted changes across the whole working tree.

(cherry picked from commit 4a49c50a4c351503a94c223da05888e5fd3d4fa1)
lisp/vc/vc-git.el