Skip to content

Commit

Permalink
git-sh-setup: use a lowercase "usage:" string
Browse files Browse the repository at this point in the history
mergetool, bisect, and other commands that use
git-sh-setup print a usage string that is inconsistent
with the rest of Git when they are invoked as "git $cmd -h".

The compiled builtins use the lowercase "usage:" string
but these commands say "Usage:".  Adjust the shell library
to make these consistent.

Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
David Aguilar authored and Junio C Hamano committed Feb 24, 2013
1 parent b3600c3 commit 0b54366
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git-sh-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ if test -n "$OPTIONS_SPEC"; then
else
dashless=$(basename "$0" | sed -e 's/-/ /')
usage() {
die "Usage: $dashless $USAGE"
die "usage: $dashless $USAGE"
}
if [ -z "$LONG_USAGE" ]
then
LONG_USAGE="Usage: $dashless $USAGE"
LONG_USAGE="usage: $dashless $USAGE"
else
LONG_USAGE="Usage: $dashless $USAGE
LONG_USAGE="usage: $dashless $USAGE
$LONG_USAGE"
fi
Expand Down

0 comments on commit 0b54366

Please sign in to comment.