summaryrefslogtreecommitdiff
path: root/diffcore-rename.c
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2019-11-29 21:11:45 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-12-01 07:30:54 -0800
commitc54ef5e4246f569b084db5b90bbb93c854bb0aa6 (patch)
treef51698a1c30345e39107435af6ae2b3b186ef69f /diffcore-rename.c
parentbuilt-in add -i: implement the `update` command (diff)
downloadtgif-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 'diffcore-rename.c')
0 files changed, 0 insertions, 0 deletions