Skip to content

Commit b9a1a7e

Browse files
committed
add--interactive.perl: use add--helper --show-help for help_cmd
Change help_cmd sub in git-add--interactive.perl to use show-help command from builtin add--helper. Signed-off-by: Slavica Djukic <[email protected]>
1 parent aede733 commit b9a1a7e

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

git-add--interactive.perl

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,16 +1717,7 @@ sub quit_cmd {
17171717
}
17181718

17191719
sub help_cmd {
1720-
# TRANSLATORS: please do not translate the command names
1721-
# 'status', 'update', 'revert', etc.
1722-
print colored $help_color, __ <<'EOF' ;
1723-
status - show paths with changes
1724-
update - add working tree state to the staged set of changes
1725-
revert - revert staged set of changes back to the HEAD version
1726-
patch - pick hunks and update selectively
1727-
diff - view diff between HEAD and index
1728-
add untracked - add contents of untracked files to the staged set of changes
1729-
EOF
1720+
system(qw(git add--helper --show-help));
17301721
}
17311722

17321723
sub process_args {

0 commit comments

Comments
 (0)