Re: [PATCH 0/6] Initial subproject support (RFC?)
- From
Sam Ravnborg <sam@ravnborg.org>
- Date
- Apr 10, 2007, 21:02 UTC
- Message-ID
- <20070410210207.GA20955@uranus.ravnborg.org>
- In-Reply-To
- <7vk5wkuf35.fsf@assigned-by-dhcp.cox.net>
On Tue, Apr 10, 2007 at 01:52:46PM -0700, Junio C Hamano wrote:
> > People occasionally ask "how would I make a small fix to a > commit that is buried in the history", so let me take a moment > to give them a recipe.
That recipe looks ummm complicated... What I usually do is:
git format-patch HEAD~4..HEAD git reset --hard HAED~4 patch -p1 < 0004* ...edit... delete diff from 0004* git diff >> 0004* git reset --hard git am 000*
Maybe this is as complicated as your example but this is very simple to deal with. And I do not destroy history or anything.
But that said I do not use topic brances but simply clone my local repository as needed. And I always deal with a linear history.
[I post this mostly to check if this is insane and I need to understand the way you propose to do stuff]
Sam