Re: [RFC] git-sequencer.txt

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jakub Narebski <jnareb@...>
Cc: <git@...>, Junio C Hamano <gitster@...>, Johannes Schindelin <Johannes.Schindelin@...>, Joerg Sommer <joerg@...>, Daniel Barkalow <barkalow@...>, Christian Couder <chriscool@...>
Date: Monday, June 9, 2008 - 9:21 pm

> > SYNOPSIS

Well, I think we (my mentors and me) had around three different versions
of a synopsis.
ATM I think the synopsis is not a very important thing to discuss, as it is
relatively easy changeable even in the last minute. ;)

But what are your actual fears?  What troubles do you think of?


I've read the discussion about git-what and I wrote it down on a yellow
memo sheet *g* (no real TODO list) to have such a thing in git-sequencer.

First I didn't want to have it in the prototype so I didn't add it to
the spec.
But it leads me to an open question I've also noticed on testing:

If you currently start a rebase or am and there's a conflict and
you do
	git sequencer --continue
instead of
	git rebase --continue
or
	git am --resolved
the cleanup code of rebase/am is not executed and thus the job is not
properly finished.

How to prevent this?
My first idea is the one I don't really like: the user tools temporarily
generate some "post-sequencer scripts", that get executed after
finished sequencing. This way, it doesn't matter if you call git
sequencer --continue, git rebase --continue or git am --resolved to 
finish the job.

The second idea is that somehow the user tool should set a "CALLER"
environment variable or tell the caller otherwise (--caller=rebase?)
and git-sequencer only continues if called by the same caller.

The workflow is like this:
 $ git rebase -i
 ...
 Sequencing (3/5)
 Conflict!
 Fix and do git-rebase --continue
 $
 $ # fix
 $
 $ git sequencer --continue
 Use git-rebase --continue.
 $ git-rebase --continue
 ...
 Sequencing finished.
 Succesfully rebased foo bar blub.

The string "git-rebase --continue" (or "git-am --resolved") must also be
-- somehow (environment?) -- transferred to git...
The same for --abort and --skip.

Ideas for a clean solution?


Oh, I've neither experienced stgit nor quilt, but I can imagine that it
is some stack-(or push/pop)-based patch management.


Ok ;-)


Btw it is currently pretty stupid and doesn't accept any git-cherry-pick
options.

And I didn't know that --mainline exists. I've always thought the first
parent in the parent list is the "mainline".
Well, seems to be an easier-to-use alternative to the "merge" insn if you 
want to keep the non-mainline parents, commit message and authorship.
So I think, it's ok to support it ;)


Seems that it's yet another variant to realize squash, but less generic
than the reset --soft ; commit approach.

Regards,
  Stephan

-- 
Stephan Beyer <s-beyer@gmx.net>, PGP 0x6EDDD207FCC5040F
--
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:
[RFC] git-sequencer.txt, Stephan Beyer, (Sat Jun 7, 6:01 pm)
[RFCv2/FYI] git-sequencer.txt, Stephan Beyer, (Wed Jun 11, 8:22 pm)
Re: [RFCv2/FYI] git-sequencer.txt, Jakub Narebski, (Thu Jun 12, 10:10 am)
Re: [RFCv2/FYI] git-sequencer.txt, Stephan Beyer, (Thu Jun 12, 1:20 pm)
Re: [RFCv2/FYI] git-sequencer.txt, Junio C Hamano, (Thu Jun 12, 1:16 am)
Re: [RFCv2/FYI] git-sequencer.txt, Stephan Beyer, (Thu Jun 12, 1:07 pm)
Re: [RFCv2/FYI] git-sequencer.txt, Olivier Marin, (Fri Jun 13, 3:24 pm)
Re: [RFCv2/FYI] git-sequencer.txt, Paolo Bonzini, (Fri Jun 13, 1:04 am)
Re: [RFCv2/FYI] git-sequencer.txt, Stephan Beyer, (Fri Jun 13, 8:16 am)
Re: [RFCv2/FYI] git-sequencer.txt, Paolo Bonzini, (Fri Jun 13, 10:42 am)
Re: [RFCv2/FYI] git-sequencer.txt, Paolo Bonzini, (Wed Jun 11, 9:31 pm)
Re: [RFCv2/FYI] git-sequencer.txt, Stephan Beyer, (Thu Jun 12, 11:29 am)
Re: [RFCv2/FYI] git-sequencer.txt, Paolo Bonzini, (Thu Jun 12, 11:56 am)
Re: [RFC] git-sequencer.txt, Jakub Narebski, (Mon Jun 9, 12:49 pm)
Re: [RFC] git-sequencer.txt, Stephan Beyer, (Mon Jun 9, 9:21 pm)
Re: [RFC] git-sequencer.txt, Jakub Narebski, (Tue Jun 10, 2:17 am)
Re: [RFC] git-sequencer.txt, Christian Couder, (Tue Jun 10, 12:46 am)
Re: [RFC] git-sequencer.txt, Daniel Barkalow, (Wed Jun 11, 1:07 pm)
Re: [RFC] git-sequencer.txt, Stephan Beyer, (Tue Jun 10, 4:59 am)
Re: [RFC] git-sequencer.txt, Christian Couder, (Wed Jun 11, 12:10 am)
squashing patches (was: Re: [RFC] git-sequencer.txt), Stephan Beyer, (Mon Jun 9, 7:45 am)
Re: squashing patches, Junio C Hamano, (Mon Jun 9, 3:34 pm)
Re: squashing patches, Stephan Beyer, (Mon Jun 9, 4:43 pm)
Re: squashing patches, Junio C Hamano, (Mon Jun 9, 5:02 pm)
Re: squashing patches, Stephan Beyer, (Mon Jun 9, 8:38 pm)
Re: squashing patches, Jeff King, (Mon Jun 9, 4:53 pm)
Re: squashing patches, Stephan Beyer, (Mon Jun 9, 7:57 pm)
Re: squashing patches, Jeff King, (Mon Jun 9, 9:00 pm)
Re: squashing patches, Paolo Bonzini, (Mon Jun 9, 11:10 am)
[RFC/PATCH] Add git-squash tool and tests, Stephan Beyer, (Mon Jun 9, 4:29 pm)
Re: [RFC/PATCH] Add git-squash tool and tests, Johannes Schindelin, (Mon Jun 9, 4:34 pm)
Re: [RFC/PATCH] Add git-squash tool and tests, Stephan Beyer, (Mon Jun 9, 7:46 pm)
Re: [RFC/PATCH] Add git-squash tool and tests, Paolo Bonzini, (Mon Jun 9, 4:53 pm)
Re: [RFC/PATCH] Add git-squash tool and tests, Johannes Schindelin, (Mon Jun 9, 5:34 pm)
Re: [RFC/PATCH] Add git-squash tool and tests, Stephan Beyer, (Mon Jun 9, 7:42 pm)
Re: [RFC/PATCH] Add git-squash tool and tests, Johannes Schindelin, (Mon Jun 9, 8:26 pm)
Re: squashing patches, Stephan Beyer, (Mon Jun 9, 12:29 pm)
Re: squashing patches, Paolo Bonzini, (Mon Jun 9, 12:37 pm)
Re: squashing patches, Paolo Bonzini, (Mon Jun 9, 11:43 am)
Re: squashing patches (was: Re: [RFC] git-sequencer.txt), Johannes Schindelin, (Mon Jun 9, 10:04 am)