From: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
To: Patrick Doyle <wpdster@gmail.com>
Cc: git <git@vger.kernel.org>
Subject: Re: OK, how should I have done this...
Date: Mon, 22 Nov 2010 14:34:48 +0100 [thread overview]
Message-ID: <vpq4ob9qy6f.fsf@bauges.imag.fr> (raw)
In-Reply-To: <AANLkTim0_J0i_a0o+z1oCC4mramfUxCGtCg_Y+ab+h+-@mail.gmail.com> (Patrick Doyle's message of "Mon\, 22 Nov 2010 08\:22\:09 -0500")
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/
next prev parent reply other threads:[~2010-11-22 13:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-22 13:22 OK, how should I have done this Patrick Doyle
2010-11-22 13:34 ` Matthieu Moy [this message]
2010-11-22 14:22 ` Patrick Doyle
2010-11-22 14:29 ` Tay Ray Chuan
2010-11-22 16:14 ` Matthieu Moy
2010-11-23 0:05 ` Junio C Hamano
2010-11-23 0:17 ` Patrick Doyle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vpq4ob9qy6f.fsf@bauges.imag.fr \
--to=matthieu.moy@grenoble-inp.fr \
--cc=git@vger.kernel.org \
--cc=wpdster@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.