[PATCH v3 7/7] add--interactive.perl: use add--helper --show-help for help_cmd
- From
- Slavica Djukic via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Jan 21, 2019, 09:13 UTC
- Message-ID
- <b9a1a7e37a477e978f19cbcc9b41f80519de54da.1548062019.git.gitgitgadget@gmail.com>
- In-Reply-To
- <pull.103.v3.git.gitgitgadget@gmail.com>
From: Slavica Djukic <slawica92@hotmail.com>
Change help_cmd sub in git-add--interactive.perl to use show-help command from builtin add--helper.
Signed-off-by: Slavica Djukic <slawica92@hotmail.com> --- git-add--interactive.perl | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/git-add--interactive.perl b/git-add--interactive.perl index a6536f9cf3..32ee729a58 100755 --- a/git-add--interactive.perl +++ b/git-add--interactive.perl @@ -1717,16 +1717,7 @@ sub quit_cmd { } sub help_cmd { -# TRANSLATORS: please do not translate the command names -# 'status', 'update', 'revert', etc. - print colored $help_color, __ <<'EOF' ; -status - show paths with changes -update - add working tree state to the staged set of changes -revert - revert staged set of changes back to the HEAD version -patch - pick hunks and update selectively -diff - view diff between HEAD and index -add untracked - add contents of untracked files to the staged set of changes -EOF + system(qw(git add--helper --show-help)); } sub process_args {
-- gitgitgadget