Re: Git feature request: --amend older commit

2012-08-18 Thread Junio C Hamano
Jared Hance writes: [administrivia: do not deflect a direct response to you away by using mail-followup-to header, thanks] > On Fri, Aug 17, 2012 at 11:47:49AM -0400, George Spelvin wrote: >> Something like "git commit --fixup HEAD~3", where "git commit --fixup HEAD" >> would be equivalent to "g

Re: Git feature request: --amend older commit

2012-08-17 Thread Jared Hance
On Fri, Aug 17, 2012 at 11:47:49AM -0400, George Spelvin wrote: > Something like "git commit --fixup HEAD~3", where "git commit --fixup HEAD" > would be equivalent to "git commit --amend". Aside from the ways others mentioned on how to do this, I think that a better interface if this were to be ad

Re: Git feature request: --amend older commit

2012-08-17 Thread George Spelvin
> Have you tried "git rebase --autosquash"? It does part of what you are > asking for and additionally allows multiple fixup commits to be queued > up and processed in a single rebase. No, I hadn't! It's not *quite* as simple as what I had hoped for, but definitely is progress in that directio

Re: Git feature request: --amend older commit

2012-08-17 Thread Michael Haggerty
On 08/17/2012 05:47 PM, George Spelvin wrote: With git's "commit frequently" style, I often find that I end up with a commit that includes a typo in a comment or I forgot one call site when updating functions or something. And it's a few commits later before I notice the simple oops. This is of

Re: Git feature request: --amend older commit

2012-08-17 Thread Thomas Rast
"George Spelvin" writes: > With git's "commit frequently" style, I often find that I end up with a > commit that includes a typo in a comment or I forgot one call site when > updating functions or something. [...] > But it would be really handy if there were a one-step command for doing this. > >

Git feature request: --amend older commit

2012-08-17 Thread George Spelvin
With git's "commit frequently" style, I often find that I end up with a commit that includes a typo in a comment or I forgot one call site when updating functions or something. And it's a few commits later before I notice the simple oops. This is of course fixable by making a commit, rebase -i HE