diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2019-11-29 21:11:45 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-12-01 07:30:54 -0800 |
commit | c54ef5e4246f569b084db5b90bbb93c854bb0aa6 (patch) | |
tree | f51698a1c30345e39107435af6ae2b3b186ef69f /list.h | |
parent | built-in add -i: implement the `update` command (diff) | |
download | tgif-c54ef5e4246f569b084db5b90bbb93c854bb0aa6.tar.xz |
built-in add -i: re-implement `revert` in C
This is a relatively straight-forward port from the Perl version, with
the notable exception that we imitate `git reset -- <paths>` in the C
version rather than the convoluted `git ls-tree HEAD -- <paths> | git
update-index --index-info` followed by `git update-index --force-remove
-- <paths>` for the missed ones.
While at it, we fix the pretty obvious bug where the `revert` command
offers to unstage files that do not have staged changes.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'list.h')
0 files changed, 0 insertions, 0 deletions