]> git.eshelyaron.com Git - emacs.git/commit
vc-git: Properly track unstaged deletions
authorSean Whitton <spwhitton@spwhitton.name>
Sat, 7 Jun 2025 12:25:59 +0000 (13:25 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 7 Jun 2025 20:03:23 +0000 (22:03 +0200)
commit073b3067075848afe20c614af393b61264c3533d
treef8e69e7439b6a1fd89e06821158242acfe0feb42
parenta85a54140a2deb77d637b077d8cd1ddac2bf33d1
vc-git: Properly track unstaged deletions

* lisp/vc/vc-git.el (vc-git--git-status-to-vc-state)
(vc-git-after-dir-status-stage): Return/set 'missing' VC state,
not 'removed' state, for unstaged deletions.
(vc-git-dir-status-goto-stage): Add 'ls-files-missing' stage.

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