git workflow draft

Johannes Sixt j.sixt at
Fri Feb 18 11:16:27 GMT 2011

Am 2/18/2011 11:37, schrieb Parker Coates:
> This is off topic, but is there a git tool to run a particular command
> (for example, cmake && make && ./test) for every commit in a range?
> Something like git-bisect without the bisecting.
> More than once, I've rebased a local topic branch and been concerned
> that some of the intermittent commits might no longer be buildable.
> (This is especially an issue if commits are reordered.) Being able to
> tell git to checkout and build each revision (halting if a build
> fails) while I go do something else would be very convenient.

git rebase --interactive that-base-commit

and insert

  x cmake && make && ./test

after each 'pick' line. (Since git 1.7.3.)

-- Hannes

More information about the kde-core-devel mailing list