git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Some ideas for StGIT

From
JSJosef Sipek <jsipek@fsl.cs.sunysb.edu>
Date
Aug 5, 2007, 14:06 UTC
Message-ID
<20070805140658.GA4570@filer.fsl.cs.sunysb.edu>
In-Reply-To
<Pine.LNX.4.64.0708051452280.14781@racer.site>
On Sun, Aug 05, 2007 at 02:56:23PM +0100, Johannes Schindelin wrote:
Show 13 quoted lines
> Hi,
> 
> On Sun, 5 Aug 2007, Josef Sipek wrote:
> 
> > On Sat, Aug 04, 2007 at 10:31:30PM -0400, Shawn O. Pearce wrote:
> > ...
> > [rebase is complex but fun]
> > 
> > Great, but does git have something that could replace
> > $QUILT_LIKE_APP refresh?
> 
> What does "refresh"?  (I never used quilt, and probably never will, since 
> rebase -i does what I need.)
You understood correctly...see below.
Show 14 quoted lines
> > Sure, if you can take 2 commits and collapse them into one you could 
> > fake it by creating a dummy commit with the new changes, and then 
> > collapsing, but that's nasty - and reflog might not like that much :)
> 
> IIUC you want to edit/amend a patch in the middle of a series?  Two ways 
> to go about it:
> 
> 	1) (preferred)
> 
> 		* start rebase -i
> 		* mark the commit as "edit"
> 		* wait until rebase stops to let you edit it
> 		* edit, test, commit --amend
> 		* rebase --continue

Ewww...that doesn't seem to scale (read: far too much to type) :) Here's a quilt/guilt/stgit equivalent:

	$APP push <patchname>
or (depending on where you are in the patch stack)
	$APP pop <patchname>
	<edit>
	$APP refresh # this is the commit --amend part
Josef 'Jeff' Sipek.
-- 
The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all progress
depends on the unreasonable man.
		- George Bernard Shaw
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 11 of 32 in “Some ideas for StGIT”
  1. Pavel RoskinAug 3, 2007
  2. Andy ParkinsAug 3, 2007
  3. Pavel RoskinAug 4, 2007
  4. Shawn O. PearceAug 4, 2007
  5. Pavel RoskinAug 5, 2007
  6. Jakub NarebskiAug 5, 2007
  7. Shawn O. PearceAug 5, 2007
  8. Junio C HamanoAug 5, 2007
  9. Josef SipekAug 5, 2007
  10. Johannes SchindelinAug 5, 2007
  11. Josef SipekAug 5, 2007
  12. Johannes SchindelinAug 5, 2007
  13. Josef SipekAug 5, 2007
  14. Yann DirsonAug 4, 2007
  15. Catalin MarinasAug 6, 2007
  16. Chris ShoemakerAug 4, 2007
  17. Johannes SchindelinAug 4, 2007
  18. Yann DirsonAug 3, 2007
  19. Catalin MarinasAug 6, 2007
  20. Pavel RoskinAug 6, 2007
  21. Josef SipekAug 6, 2007
  22. Theodore TsoAug 4, 2007
  23. Yann DirsonAug 4, 2007
  24. Josef SipekAug 4, 2007
  25. Pavel RoskinAug 5, 2007
  26. Catalin MarinasAug 6, 2007
  27. Karl HasselströmAug 6, 2007
  28. Pavel RoskinAug 6, 2007
  29. Karl HasselströmAug 6, 2007
  30. Catalin MarinasAug 23, 2007
  31. Karl HasselströmAug 23, 2007
  32. Pavel RoskinAug 6, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.