Code

git-commit: allow -e option anywhere on command line
authorJeff King <peff@peff.net>
Fri, 23 Jun 2006 13:43:38 +0000 (09:43 -0400)
committerJunio C Hamano <junkio@cox.net>
Fri, 23 Jun 2006 23:55:51 +0000 (16:55 -0700)
commitcda8ab59bbdb24b4ef87083781dac1f4f1b973a1
treee824785f5b7ace7d2ae1d69819be2a6678922d14
parent8d3cbd27d46bdf42d632de0a2e7f048855941128
git-commit: allow -e option anywhere on command line

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>
git-commit.sh