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

Re: [PATCH v2] rebase -i: add config to abbreviate command-names

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 25, 2017, 06:29 UTC
Message-ID
<xmqqinltuhiv.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170425043742.15529-1-liambeguin@gmail.com>
Liam Beguin <liambeguin@gmail.com> writes:
Show 10 quoted lines
> Add the 'rebase.abbrevCmd' boolean config option to allow `git rebase -i`
> to abbreviate the command-names in the instruction list.
>
> This means that `git rebase -i` would print:
>     p deadbee The oneline of this commit
>     ...
>
> instead of:
>     pick deadbee The oneline of this commit
>     ...

Whenever I see "This means that...", my automatic reaction is "The author expects what s/he wrote previously is not understandable, and is making another try to give something more readable. As this is not a real time communication, why not rewrite the incomprehensible part before wasting the time of the readers by throwing at them what is known to the author to be unreadble, only to clarify with 'This means that...' later?"

But I think in this case, you do not even have to say "This means that". What you wrote, without "This means that", i.e.

    Add the 'rebase.abbrevCommand' configuration variable to tell
    `git rebase -i` to show commands abbreviated in the instruction
    list, i.e.
         p deadbee The oneline of this commit
         ...
    instead of:
         pick deadbee The oneline of this commit
         ...
is quite readable.
> Using a single character command-name allows the lines to remain
> aligned, making the whole set more readable.

Hmph. I have trouble with "lines remain aligned". Depending on the object names of commits, don't you end up getting something like this that is not aligned?

    p deadbee The oneline
    p e2cb6ab8 Another commit

Or are you happy with only the beginning of object names aligned, without the actual titles aligned?

Personally I am happy with the beginning of each instruction line aligned, so from that point of view, this patch is a mild Meh to me, even though I do a fair amount of "rebase -i" myself. But obviously I am not the only user of Git you need to please, so...

Previous: Liam BeguinNext: Jacob Keller
Message 9 of 28 in “rebase -i: add config to abbreviate command name”
  1. rebase -i: add config to abbreviate command nameLiam Beguin, Apr 24, 2017
  2. Johannes SchindelinApr 24, 2017
  3. liam BEGUINApr 24, 2017
  4. liam BEGUINApr 25, 2017
  5. Johannes SchindelinApr 25, 2017
  6. liam BEGUINApr 25, 2017
  7. Jeff KingApr 24, 2017
  8. rebase -i: add config to abbreviate command-namesLiam Beguin, Apr 25, 2017
  9. Junio C HamanoApr 25, 2017
  10. Jacob KellerApr 25, 2017
  11. liam BeguinApr 25, 2017
  12. Junio C HamanoApr 26, 2017
  13. Andreas SchwabApr 25, 2017
  14. Mike RappazzoApr 25, 2017
  15. Philip OakleyApr 25, 2017
  16. rebase -i: add config to abbreviate command-namesLiam Beguin, Apr 25, 2017
  17. Andreas SchwabApr 25, 2017
  18. Johannes SchindelinApr 25, 2017
  19. liam BEGUINApr 25, 2017
  20. Johannes SchindelinApr 25, 2017
  21. liam BeguinApr 26, 2017
  22. Jeff KingApr 26, 2017
  23. Junio C HamanoApr 26, 2017
  24. Johannes SchindelinApr 26, 2017
  25. Junio C HamanoApr 27, 2017
  26. Johannes SchindelinApr 26, 2017
  27. Ævar Arnfjörð BjarmasonApr 26, 2017
  28. liam BeguinApr 27, 2017

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.