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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Karl
Date: Tuesday, July 8, 2008 - 10:20 pm

(I've hijacked this thread and started talking mostly about StGit
instead of git-sequencer; if you're not interested, you can stop
reading now.)

On 2008-07-08 12:37:50 +0200, Jakub Narebski wrote:


You can do this without having to manually go to the right patch with
the -p <patchname> flag to stg refresh. In my experimental branch,
this even works together with path limited refresh, or refresh of just
the index.

My own workflow is different: I generally make a large number of
rather small "work-in-progress" commits without much of a commit
message, and every now and then (while I still have everything in
short-term memory) I use "stg coalesce" to make one or more "real"
patches out of them. Because I've committed such small pieces in the
first place, I rarely need to split a patch.


The best way I've found of splitting a patch in StGit is to open the
diff in an Emacs buffer, then pop the patch, and then use Emacs' cool
diff-mode features to apply hunks selectively, split hunks, edit files
in place, etc., and committing at the points where I want patch
boundaries. Occasionally, I'll push and pop the patch to get a new
diff with only the remaining stuff.

I imagine something like this could work without StGit as well, since
it's mostly Emacs doing all the hard work. (And I suppose there are
other tools besides Emacs that can do this?)

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