Re: [PATCH 4/4] Add git-rewrite-commits
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jul 9, 2007, 11:57 UTC
- Message-ID
- <Pine.LNX.4.64.0707091256430.5546@racer.site>
- In-Reply-To
- <4691F96E.D869DF97@eudaptics.com>
Hi,
On Mon, 9 Jul 2007, Johannes Sixt wrote:
Show 11 quoted lines
> Sven Verdoolaege wrote: > > I guess the major thing that is missing is --subdirectory-filter. > > Anything else? > > Yes, how about this: > > $ git rewrite-commits --index-map ' > testresult=$($HOME/bin/expensive-test); > [ $testresult = t ] && $HOME/bin/tweak-index ' \ > --commit-map ' > [ $testresult = t ] && $HOME/bin/tweak-commit '
As skimo almost hinted: this will not work. Once the index "map" exits, testresult is forgotten.
Ciao, Dscho