]> git.ipfire.org Git - thirdparty/git.git/commit - add-interactive.c
built-in add -i: implement the `help` command
authorSlavica Đukić <slawica92@hotmail.com>
Fri, 15 Nov 2019 11:11:20 +0000 (11:11 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 18 Nov 2019 02:18:30 +0000 (11:18 +0900)
commit8c159044625e46de67cd8467f07424f38eb8301e
treeaf742630888828a67ce0d727a03f11be290017b2
parent3d965c76744482b50669a7d1b445c0ddbf92209a
built-in add -i: implement the `help` command

This imitates the code to show the help text from the Perl script
`git-add--interactive.perl` in the built-in version.

To make sure that it renders exactly like the Perl version of `git add
-i`, we also add a test case for that to `t3701-add-interactive.sh`.

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