Re: Revert option for git add --patch

2012-11-09 Thread Bogolisk
Jonathon Mah me.com> writes: > > Nathan, > > I find myself performing similar actions to you: using git add -p to stage hunks, sometimes editing the > staged patch; and keeping mental notes of things I wanted to revert, > sometimes changing them in the editor > in another window, and sometim

Re: Revert option for git add --patch

2012-11-08 Thread Jeff King
On Fri, Nov 09, 2012 at 08:42:33AM +1300, Nathan Broadbent wrote: > It sounds like we want a tool that combines the functionality of 'git add > --patch', 'git checkout --patch', and other features, so that we can > perform various actions on 'hunks' without switching context. What do you > think a

Re: Revert option for git add --patch

2012-11-08 Thread Jeff King
On Thu, Nov 08, 2012 at 12:57:19AM -0800, Jonathon Mah wrote: > I find myself performing similar actions to you: using git add -p to > stage hunks, sometimes editing the staged patch; and keeping mental > notes of things I wanted to revert, sometimes changing them in the > editor in another window

Re: Revert option for git add --patch

2012-11-08 Thread Nguyen Thai Ngoc Duy
On Thu, Nov 8, 2012 at 3:57 PM, Jonathon Mah wrote: > Nathan, > > I find myself performing similar actions to you: using git add -p to stage > hunks, sometimes editing the staged patch; and keeping mental notes of things > I wanted to revert, sometimes changing them in the editor in another wind

Re: Revert option for git add --patch

2012-11-08 Thread Jonathon Mah
Nathan, I find myself performing similar actions to you: using git add -p to stage hunks, sometimes editing the staged patch; and keeping mental notes of things I wanted to revert, sometimes changing them in the editor in another window, and sometimes reverting them after the add session with g

Re: Revert option for git add --patch

2012-11-08 Thread Michal Kiedrowicz
Nathan Broadbent gmail.com> writes: > I would like to propose a revert option for 'git add --patch', that > reverts the hunk. I often use `git add -p` to skip whitespace changes > when preparing a patch, and a 'revert' option would save me from > running &#

Re: Revert option for git add --patch

2012-11-07 Thread Simon Rozet
help On Wed, Nov 7, 2012 at 3:54 PM, Nathan Broadbent wrote: > Hi, > > I would like to propose a revert option for 'git add --patch', that > reverts the hunk. I often use `git add -p` to skip whitespace changes > when preparing a patch, and a 'revert' optio