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

Reordering lines in "git-rebase -i" task sheet

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 22, 2007, 09:21 UTC
Message-ID
<7vlk8q7hzg.fsf@gitster.siamese.dyndns.org>

When you start "git rebase -i" to reorder a few commits, you are presented with an editor buffer with 9 or so lines of help text and then lines you are supposed to edit, but most editors start with your edit cursor at line 1. IOW, _everybody_ has to move their cursor down at least 9 lines before doing anything meaningful (or they can remove 9 lines but that is the same thing).

Could we please reorder the lines so that list of initial "pick"s come first and have the help comment lines at the very end?

That is the reason why git commit leaves the first line empty in its initial template. It is to allow the user to immediately start typing.

Next: Johannes Schindelin
Message 1 of 14 in “Reordering lines in "git-rebase -i" task sheet”
  1. Junio C HamanoNov 22, 2007
  2. rebase -i: move help to end of todo fileJohannes Schindelin, Nov 22, 2007
  3. Adjust t3404 to ignore empty lines in the todo fileJohannes Schindelin, Nov 22, 2007
  4. Junio C HamanoNov 22, 2007
  5. Johannes SchindelinNov 22, 2007
  6. Jeff KingNov 22, 2007
  7. rebase -i: give rerere a chanceJohannes Schindelin, Nov 22, 2007
  8. Junio C HamanoNov 29, 2007
  9. Johannes SchindelinNov 29, 2007
  10. David KastrupNov 29, 2007
  11. David BrownNov 22, 2007
  12. Johannes SchindelinNov 22, 2007
  13. Andy ParkinsNov 23, 2007
  14. Andy ParkinsNov 26, 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.