selective git-update-index per diff(1) chunks

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Friday, December 1, 2006 - 7:23 am

Pretty often I end up with a file with two simple orthogonal fixes in it.
git-diff shows me both, that's OK.

Now I want to commit them as two separate commits. So far, it's
* getting full diff
* cp(1)
* hand-edit both diffs
* commit first
* commit second

Has anyone thought about aggregating this into git-update-index or
somewhere?

    git-update-index -C1,3    #chunks 1, 3
    git commit
    git-update-index -C1,3    # chunks 2,5 in original numbering
    git commit

Relying on diff(1) definition of chunks is sorta hacky, though... I admit it.
-
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:
selective git-update-index per diff(1) chunks, Alexey Dobriyan, (Fri Dec 1, 7:23 am)
Re: selective git-update-index per diff(1) chunks, Sven Verdoolaege, (Mon Dec 4, 1:33 pm)
Re: selective git-update-index per diff(1) chunks, Linus Torvalds, (Fri Dec 1, 12:06 pm)