summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2019-11-29 21:11:45 +0000
committerJunio C Hamano <gitster@pobox.com>2019-12-01 07:30:54 -0800
commitc54ef5e4246f569b084db5b90bbb93c854bb0aa6 (patch)
treef51698a1c30345e39107435af6ae2b3b186ef69f /builtin/commit.c
parenta8c45be939d88c2d1df88daf7958da2ee5dce170 (diff)
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 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions