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

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

From
APAndy Parkins <andyparkins@gmail.com>
Date
Nov 23, 2007, 08:54 UTC
Message-ID
<fi64ge$u1g$1@ger.gmane.org>
In-Reply-To
<7vlk8q7hzg.fsf@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
> 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?
I'm not convinced that this is a great idea.

Mostly with git-rebase -i one is reordering the most recent commits, which are at the bottom. Personally, I am often reordering commits that are as yet unpushed, so for ease-of-thinking I type

 git rebase -i origin/master

again and again. Hence the early lines are probably already sorted into a nice order and it's commits at the bottom of the list that need a bit of massaging.

At present it's easy to get to them because a shift-G or ctrl-end, or $END_OF_FILE takes you there. With the above change it's now more steps to move to the interesting part.

Now if you were suggesting flipping the sort direction at the same time, I could get on board - but that is perhaps one confusing step too far.

> 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.

That's different, for a commit message, the first line is exactly where one would want to be.

Not a strong objection.
Andy
-- 
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com
Previous: Johannes SchindelinNext: Andy Parkins
Message 13 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.