Skip to content

Commit

Permalink
Show usage string for 'git merge-one-file -h'
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
jrn authored and gitster committed Nov 10, 2009
1 parent aa481d3 commit ae5bdda
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions git-merge-one-file.sh
Expand Up @@ -16,6 +16,18 @@
# been handled already by git read-tree, but that one doesn't
# do any merges that might change the tree layout.

USAGE='<orig blob> <our blob> <their blob> <path>'
USAGE="$USAGE <orig mode> <our mode> <their mode>"
LONG_USAGE="Usage: git merge-one-file $USAGE
Blob ids and modes should be empty for missing files."

if ! test "$#" -eq 7
then
echo "$LONG_USAGE"
exit 1
fi

case "${1:-.}${2:-.}${3:-.}" in
#
# Deleted in both or deleted in one and unchanged in the other
Expand Down

0 comments on commit ae5bdda

Please sign in to comment.