Re: Pulling one commit at a time.
- From
Matthieu Moy <matthieu.moy@imag.fr>
- Date
- Aug 24, 2009, 11:07 UTC
- Message-ID
- <vpqskfhbhcz.fsf@bauges.imag.fr>
- In-Reply-To
- <4A92703E.90007@microchip.com>
Sanjiv Gupta <sanjiv.gupta@microchip.com> writes:
> I was looking for post-mortem change-that-introduced-bug.
If so, then you don't need to test every commit. As David mentionned, "git bisect" is your friend, and will do a binary search, finding the culprit commit much more efficiently (run the testsuite log(n) times instead of n times).
OTOH, if you want some kind of quality insurance (i.e. check that every commit is OK, including the case where a commit introduces a bug, and the next one fixes it), bisect is rather helpless.
-- Matthieu