From: Johannes Schindelin Date: Mon, 09 Jul 2007 11:57:38 GMT Subject: Re: [PATCH 4/4] Add git-rewrite-commits Message-ID: In-Reply-To: <4691F96E.D869DF97@eudaptics.com> Hi, On Mon, 9 Jul 2007, Johannes Sixt wrote: > 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