summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8d3cbd2)
raw | patch | inline | side by side (parent: 8d3cbd2)
author | Jeff King <peff@peff.net> | |
Fri, 23 Jun 2006 13:43:38 +0000 (09:43 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 23 Jun 2006 23:55:51 +0000 (16:55 -0700) |
Previously, the command 'git-commit -e -m foo' would ignore the '-e' option
because the '-m' option overwrites the no_edit flag during sequential
option parsing. Now we cause -e to reset the no_edit flag after all
options are parsed.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
because the '-m' option overwrites the no_edit flag during sequential
option parsing. Now we cause -e to reset the no_edit flag after all
options are parsed.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-commit.sh | patch | blob | history |
diff --git a/git-commit.sh b/git-commit.sh
index 6dd04fd3675fd2559f983581a9d5f7eddee31e55..e74fe640b8acb87bef2cc118e87d8779c79f8786 100755 (executable)
--- a/git-commit.sh
+++ b/git-commit.sh
logfile=
use_commit=
amend=
+edit_flag=
no_edit=
log_given=
log_message=
shift
;;
-e|--e|--ed|--edi|--edit)
- no_edit=
+ edit_flag=t
shift
;;
-i|--i|--in|--inc|--incl|--inclu|--includ|--include)
;;
esac
done
+case "$edit_flag" in t) no_edit= ;; esac
################################################################
# Sanity check options