login
Header Space

 
 

Re: [PATCH v2 2/4] Add git-sequencer prototype documentation

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jakub Narebski <jnareb@...>
Cc: <git@...>, Christian Couder <chriscool@...>, Daniel Barkalow <barkalow@...>, Johannes Schindelin <Johannes.Schindelin@...>, Junio C Hamano <gitster@...>
Date: Tuesday, July 8, 2008 - 7:49 am

Hi,

On Tue, Jul 08, 2008, Jakub Narebski wrote:
[...]

I've needed this, too, and I've added this use case in the EXAMPLES
section that will be included in the next patchset.
Basically it is the same as the rebase documentation says:
during a pause (by "edit" or "pause" insn) reset to HEAD^, add only
those parts to the index you want to have in the first patch and commit
and then repeat this.

When I've experienced this need the first time, I thought about how
sequencer could ease that.
A first idea was something like "take only files X, Y, Z from commit ..."
or a --exclude as patch has.
But often splitting a patch is not done file-wise, but hunk-wise or even
line-wise.
So my second idea was to add an option to "pause" that just invokes
the "reset HEAD^". That makes it easy, I think.
How should this option be called?


Imho the patch generation should be done by git-rebase.


That seems to be useful indeed and reminds me of
"git bisect run <script>".
Perhaps it's also better to call it "run" so that it is a generic
way of running scripts from sequencer and if they fail, sequencer
will pause, if they pass, everything goes on.

What about this?


run [--dir=<path>] [--] <cmd> <args>...::
	Run command `<cmd>` with arguments `<args>`.
	Pause (conflict-like) if exit status is non-zero.
+
If `<path>` is set, sequencer will change directory to `<path>`
before running the command and change back after exit.



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:
git sequencer prototype, Stephan Beyer, (Mon Jun 30, 10:38 pm)
Re: git sequencer prototype, Alex Riesen, (Fri Jul 4, 5:00 pm)
Re: git sequencer prototype, Junio C Hamano, (Fri Jul 4, 6:09 pm)
Re: git sequencer prototype, Alex Riesen, (Sat Jul 5, 4:13 am)
Re: git sequencer prototype, Johannes Schindelin, (Sat Jul 5, 6:13 am)
Re: git sequencer prototype, Thomas Adam, (Sat Jul 5, 6:12 am)
Re: git sequencer prototype, Stephan Beyer, (Fri Jul 4, 6:23 pm)
Re: git sequencer prototype, Junio C Hamano, (Tue Jul 1, 4:51 am)
Re: git sequencer prototype, Stephan Beyer, (Tue Jul 1, 10:53 am)
[RFC/PATCH 1/4] Add git-sequencer shell prototype, Stephan Beyer, (Mon Jun 30, 10:38 pm)
[PATCH v2 1/4] Add git-sequencer shell prototype, Stephan Beyer, (Sat Jul 5, 12:58 pm)
Re: [RFC/PATCH 1/4] Add git-sequencer shell prototype, Jakub Narebski, (Thu Jul 3, 9:10 am)
Re: [RFC/PATCH 1/4] Add git-sequencer shell prototype, Stephan Beyer, (Thu Jul 3, 5:12 pm)
[RFC/PATCH 2/4] Add git-sequencer prototype documentation, Stephan Beyer, (Mon Jun 30, 10:38 pm)
Re: [PATCH v2 2/4] Add git-sequencer prototype documentation, Stephan Beyer, (Tue Jul 8, 7:49 am)
[RFC/PATCH 3/4] Add git-sequencer test suite (t3350), Stephan Beyer, (Mon Jun 30, 10:38 pm)
Re: [RFC/PATCH 3/4] Add git-sequencer test suite (t3350), Junio C Hamano, (Sat Jul 5, 2:16 pm)
[RFC/PATCH 4/4] Migrate git-am to use git-sequencer, Stephan Beyer, (Mon Jun 30, 10:38 pm)
git-rebase-i migration to sequencer, Stephan Beyer, (Mon Jun 30, 10:39 pm)
[PATCH 1/2] Make rebase--interactive use OPTIONS_SPEC, Stephan Beyer, (Mon Jun 30, 10:39 pm)
[RFC/PATCH 2/2] Migrate git-rebase--i to use git-sequencer, Stephan Beyer, (Mon Jun 30, 10:39 pm)
speck-geostationary