Re: [PATCH 4/4] Add git-rewrite-commits
On Mon, Jul 09, 2007 at 11:01:34AM +0200, Johannes Sixt wrote:
Show 13 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 '
>
> :-P
You can write the result of expensive-test to a temporary file.
skimo