]> git.ipfire.org Git - thirdparty/git.git/commit - add-patch.c
built-in add -p: implement the 'g' ("goto") command
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 13 Dec 2019 08:08:02 +0000 (08:08 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Dec 2019 20:37:14 +0000 (12:37 -0800)
commit9254bdfb4f971be4be5364341a0387e8a1f3734a
tree07cd7c51048a140dff15c2c801a7423273f8438b
parentbcdd297b782b19782d8e09b18682ec61d7c36897
built-in add -p: implement the 'g' ("goto") command

With this patch, it is now possible to see a summary of the available
hunks and to navigate between them (by number).

A test is added to verify that this behavior matches the one of the Perl
version of `git add -p`.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
add-patch.c
t/t3701-add-interactive.sh