Re: OK, how should I have done this...
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Nov 22, 2010, 13:34 UTC
- Message-ID
- <vpq4ob9qy6f.fsf@bauges.imag.fr>
- In-Reply-To
- <AANLkTim0_J0i_a0o+z1oCC4mramfUxCGtCg_Y+ab+h+-@mail.gmail.com>
Patrick Doyle <wpdster@gmail.com> writes:
> I just checked in modifications to 1/2 dozen or so files in a single > commit and pushed them to my server.
> So now I want to figure out which modification(s) in which file(s) > introduced the problem.
'didn't read all the details of your message, but the way I'd have done this would be with stash --keep-index:
(untested)
git checkout the-one-that-works # staging area and tree checked out. git reset the-one-that-doesnt # just change the staging area git add -p # pick some commits git stash --keep-index # run some tests # if test fail then # happy, "git diff --staged" tells you what. # else git commit -m "first modification" git stash pop # goto the git add -p step. # fi
-- Matthieu Moy http://www-verimag.imag.fr/~moy/