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

Re: [PATCHv3] git-rebase--interactive.sh: extend "edit" command to be more useful

From
Kevin Ballard <kevin@sb.org>
Date
Dec 3, 2010, 10:14 UTC
Message-ID
<85DF30E1-E823-41D9-BAD7-4A11BD0D03C7@sb.org>
In-Reply-To
<20101203100059.GA12043@burratino>
On Dec 3, 2010, at 2:00 AM, Jonathan Nieder wrote:
Show 7 quoted lines
>> But most importantly, since $rest is echoed on the terminal, it MUST be
>> derived from the recipe ($line). Rationale: I replace the commit subject
>> in the recipe by a reminder what I intend to do when the "edit" command
>> stops---I don't care so much what the commit subject is.
> 
> Kevin, this sounds like a vote for the "replace commit message" output
> format.

The v3 patch will emit both a description of the commit it stopped on, as well as the comment. The rationale for extracting the first line of HEAD is for when the user doesn't provide any comment - e.g. they just add "edit". It may be worth doing this only in that case, and if the user did provide a comment, emit it in place of the first line of HEAD.

Given the recipe
	pick bc17bb7 git-rebase--interactive.sh: extend "edit" command to be more useful
	edit - foo
the edit command would print
	Stopped at bc17bb7... git-rebase--interactive.sh: extend "edit" command to be more useful
	
		foo
	
	You can amend the commit now...
The alternative is to make that same recipe emit
	Stopped at bc17bb7... foo
	
	You can amend the commit now...

I'm leaning towards making that change right now, but I'm not certain. Do either of you have a preference?

-Kevin Ballard
Previous: Jonathan Nieder
Message 39 of 39 in “git-rebase--interactive.sh: Add new command "shell"”
  1. git-rebase--interactive.sh: Add new command "shell"Kevin Ballard, Nov 4, 2010
  2. Kevin BallardNov 4, 2010
  3. Matthieu MoyNov 4, 2010
  4. Kevin BallardNov 4, 2010
  5. Ævar Arnfjörð BjarmasonNov 4, 2010
  6. Kevin BallardNov 4, 2010
  7. Ævar Arnfjörð BjarmasonNov 4, 2010
  8. Johannes SixtNov 4, 2010
  9. Erik Faye-LundNov 4, 2010
  10. Kevin BallardNov 4, 2010
  11. Yann DirsonNov 4, 2010
  12. Erik Faye-LundNov 4, 2010
  13. Eric RaibleNov 4, 2010
  14. Matthieu MoyNov 4, 2010
  15. Eric RaibleNov 4, 2010
  16. Jonathan NiederNov 4, 2010
  17. Yann DirsonNov 4, 2010
  18. Eric RaibleNov 4, 2010
  19. [PATCHv2] git-rebase--interactive.sh: extend "edit" command to be more usefulKevin Ballard, Nov 4, 2010
  20. Kevin BallardNov 4, 2010
  21. Johannes SixtNov 5, 2010
  22. Kevin BallardNov 5, 2010
  23. Junio C HamanoNov 8, 2010
  24. Kevin BallardNov 8, 2010
  25. Yann DirsonNov 8, 2010
  26. Jonathan NiederNov 10, 2010
  27. Kevin BallardNov 10, 2010
  28. Jonathan NiederNov 10, 2010
  29. Yann DirsonNov 10, 2010
  30. Matthieu MoyNov 10, 2010
  31. Jonathan NiederNov 10, 2010
  32. Kevin BallardNov 10, 2010
  33. [PATCHv3] git-rebase--interactive.sh: extend "edit" command to be more usefulKevin Ballard, Nov 24, 2010
  34. Jonathan NiederDec 3, 2010
  35. Kevin BallardDec 3, 2010
  36. Jonathan NiederDec 3, 2010
  37. Johannes SixtDec 3, 2010
  38. Jonathan NiederDec 3, 2010
  39. Kevin BallardDec 3, 2010

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.