Thread (11 messages) flat view 11 messages, 4 authors, 2016-06-15

Re: What's cooking in git/spearce.git (topics)

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:43:44

Theodore Tso [off-list ref] wrote:
On Mon, Oct 22, 2007 at 06:29:59PM -0700, Junio C Hamano wrote:
quoted
Well, the policy is never to commit directly on top of next
(iow, only merge other topics and nothing else).  Otherwise it
becomes hard to allow individual topics graduate to 'master'
independently.
I see.  So if it's non-trivial enough that you want it to "cook" in
next for a cycle, you'll create a topic branch for it (based off of
'master'), and then force a merge into 'next'?
Yes.  Because 'next' always has commits in it that never appear in
'master'.  So any topic forked from master must merge into next.
It can't be a fast-forward.  No forced merging required.

Of course this isn't true for a new project.  That first topic
that forked from master to *create* next will be a fast-forward
as it creates next.  But that's no big deal.  The second topic will
merge into next, and that first topic can still be merged back into
master without merging next (or the second topic).

I was also doing the same thing Junio already explained to manage
next and pu while he was away.  Except I shortcut his:

	git checkout pu
	git reset --hard next

as:

	git branch -f pu next
	git checkout pu

as I'm was usually already sitting on next.  This saved my poor
little laptop from a second of IO chugging as it slewed around
between the two versions.  There were no files to update as it
switched from next to pu, and pu was already setup for merging
the proposed topics.  :-)

-- 
Shawn.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help