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

Re: [PATCH] git-rebase--{interactive,preserve-merges}: fix formatting of todo help message

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 4, 2018, 13:09 UTC
Message-ID
<nycvar.QRO.7.76.6.1807041505000.75@tvgsbejvaqbjf.bet>
In-Reply-To
<1530706658-20519-1-git-send-email-tklauser@distanz.ch>
Hi Tobias,
On Wed, 4 Jul 2018, Tobias Klauser wrote:
Show 24 quoted lines
> Part of the todo help message in git-rebase--interactive.sh and
> git-rebase--preserve-merges.sh is unnecessarily indented, making the
> message look weird:
> 
>   # These lines can be re-ordered; they are executed from top to bottom.
>   #
>   # If you remove a line here THAT COMMIT WILL BE LOST.
>   #
>   #       However, if you remove everything, the rebase will be aborted.
>   #
>   #
>   # Note that empty commits are commented out
> 
> Remove the extra lines and trailing indent to make it look as follows:
> 
>   # These lines can be re-ordered; they are executed from top to bottom.
>   #
>   # If you remove a line here THAT COMMIT WILL BE LOST.
>   #
>   # However, if you remove everything, the rebase will be aborted.
>   #
>   # Note that empty commits are commented out
> 
> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Thank you for this contribution!

Funnily enough, the same fix had been provided here: https://public-inbox.org/git/614F0C12-7173-48BD-9212-71AD6FBBDAA7@dana.is/ although only for `git-rebase--interactive.sh`.

In that thread, we agreed that it overlaps too much with a GSoC project, and that that project already addresses the same problem by way of rewriting that part in C (and therefore we decided it would be better to go with those patches).

However, your patch also covers this:
>  git-rebase--preserve-merges.sh | 4 ++--
I completely missed that in the earlier patch.

Junio, this gets an ACK from me, could you apply the `git-rebase--preserve-merges.sh` part selectively, please?

Ciao, Johannes

Previous: Tobias KlauserNext: Tobias Klauser
Message 2 of 5 in “git-rebase--{interactive,preserve-merges}: fix formatting of todo help message”
  1. git-rebase--{interactive,preserve-merges}: fix formatting of todo help messageTobias Klauser, Jul 4, 2018
  2. Johannes SchindelinJul 4, 2018
  3. Tobias KlauserJul 4, 2018
  4. Johannes SchindelinJul 4, 2018
  5. Junio C HamanoJul 6, 2018

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.