Re: yet another workflow question...

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Sixt
Date: Thursday, October 11, 2007 - 7:37 am

Patrick Doyle schrieb:

Use git-gui.

Stage the files relevant for the first change. In the file where you have an 
overlap with the second change, you can right-click in the diff pane and 
select "Stage Hunk for Commit" on the hunk relevant for the first change.[*]

Commit with a message.

Stage the remaining changes and commit again.

At this point, I usually check out HEAD~1, i.e. the state *without* the 
second change, and compile and test to make sure I have a bisectable history.

[*] Of course, this works only if the changes are not in the same hunk. If 
there are at least 3 unmodified lines between the changes, you can choose 
"Less context" until they are in separate hunks.

-- Hannes

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
yet another workflow question..., Patrick Doyle, (Thu Oct 11, 7:11 am)
Re: yet another workflow question..., Johannes Sixt, (Thu Oct 11, 7:37 am)
Re: yet another workflow question..., Wincent Colaiuta, (Thu Oct 11, 7:39 am)
Re: yet another workflow question..., Andy Parkins, (Thu Oct 11, 8:10 am)
Re: yet another workflow question..., Andreas Ericsson, (Thu Oct 11, 10:28 am)
Re: yet another workflow question..., Jing Xue, (Thu Oct 11, 1:40 pm)
Re: yet another workflow question..., Andy Parkins, (Fri Oct 12, 12:25 am)