Re: [BUG] git-rebase fails when a commit message contains a diff
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Nov 9, 2007, 08:57 UTC
- Message-ID
- <473420FE.7010807@viscovery.net>
- In-Reply-To
- <6FCE17E3-9FAA-4676-B12A-369B31743DA6@lrde.epita.fr>
Benoit Sigoure schrieb:
Show 13 quoted lines
> Off topic question: why do you guys always do this instead of doing, > say, this: > > INTERACTIVE=false > > case $1 in > --interactive|-i) > INTERACTIVE=: > ... ;; > esac > if $INTERACTIVE; then > git_editor "$TODO" || die ... > fi
Because in some shells 'false' is not a built-in.
But then this might do it without the extra process:
INTERACTIVE="! :" # false
case $1 in --interactive|-i) INTERACTIVE=: ... ;; esac if $INTERACTIVE; then git_editor "$TODO" || die ... fi
-- Hannes