Re: ! [rejected] master -> master (non-fast forward)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Catalin Marinas
Date: Monday, November 19, 2007 - 10:47 am

"Jon Smirl" <jonsmirl@gmail.com> wrote:
[...]
[...]

StGIT is meant for keeping a clean history but with the big
disadvantage that this history is volatile.

A solution is for the other developers to use StGIT or just git-rebase
so that they always have the same base (volatile) history and keep
their patches on top of yours.

A 2nd approach is to use topic branches rather than StGIT patches but
you might lose some flexibility.

Yet another approach (which I used) is to keep a public branch (can be
maintained by StGIT) where the history doesn't change and a devel
volatile branch. When I modify some patches and they are ready for
publishing, switch to the public branch and cherry-pick them (stg
pick) from the devel branch. Because this is done with a three-way
merge in StGIT, you will only get the new changes rather than the full
patch. You need to change the patch message (as it is that of the
original patch) to describe the specific changes and run 'stg refresh
&& stg commit' to store it into the immutable history (well, there is
an 'uncommit' command as well if something goes wrong).

-- 
Catalin
-
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:
! [rejected] master -&gt; master (non-fast forward), Jon Smirl, (Sun Nov 18, 8:12 am)
Re: ! [rejected] master -&gt; master (non-fast forward), Junio C Hamano, (Sun Nov 18, 11:10 am)
Re: ! [rejected] master -&gt; master (non-fast forward), Alex Riesen, (Sun Nov 18, 11:29 am)
Re: ! [rejected] master -> master (non-fast forward), Catalin Marinas, (Mon Nov 19, 10:47 am)
Re: ! [rejected] master -&gt; master (non-fast forward), Daniel Barkalow, (Mon Nov 19, 5:03 pm)
Re: ! [rejected] master -&gt; master (non-fast forward), Alex Riesen, (Mon Nov 19, 11:50 pm)
[PATCH 1/2] send-pack: cluster ref status reporting, Jeff King, (Tue Nov 20, 4:18 am)
Re: [PATCH 1/2] send-pack: cluster ref status reporting, Alex Riesen, (Tue Nov 20, 11:22 am)
Re: [PATCH 1/2] send-pack: cluster ref status reporting, Junio C Hamano, (Wed Nov 21, 12:24 am)
Re: [PATCH 1/2] send-pack: cluster ref status reporting, Junio C Hamano, (Wed Nov 21, 12:36 am)