X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-commit.sh;h=193feeb5e42f1a486a3aae42935cb98696a2baac;hb=2ed8e622bf6b718d4808e1dd2e564247f9931dde;hp=3d250ec853dad3ff7e714025026ca90f2c77e7bb;hpb=069b20a198f171512a1d2d2163b40f70c94f5257;p=git.git diff --git a/git-commit.sh b/git-commit.sh index 3d250ec8..193feeb5 100755 --- a/git-commit.sh +++ b/git-commit.sh @@ -3,12 +3,9 @@ # Copyright (c) 2005 Linus Torvalds # +USAGE='[-a] [-s] [-v | --no-verify] [-m | -F | (-C|-c) ] [-e] [...]' . git-sh-setup -usage () { - die 'git commit [-a] [-s] [-v | --no-verify] [-m | -F | (-C|-c) ] [-e] [...]' -} - all= logfile= use_commit= no_edit= log_given= log_message= verify=t signoff= while case "$#" in 0) break;; esac do @@ -151,7 +148,7 @@ esac if [ -f "$GIT_DIR/MERGE_HEAD" ]; then echo "#" - echo "# It looks like your may be committing a MERGE." + echo "# It looks like you may be committing a MERGE." echo "# If this is not correct, please remove the file" echo "# $GIT_DIR/MERGE_HEAD" echo "# and try again" @@ -168,6 +165,7 @@ then then pick_author_script=' /^author /{ + s/'\''/'\''\\'\'\''/g h s/^author \([^<]*\) <[^>]*> .*$/\1/ s/'\''/'\''\'\'\''/g