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

Remove help advice text from git editors for interactive rebase and reword

From
Kirill Likhodedov <kirill.likhodedov@jetbrains.com>
Date
Jul 23, 2017, 10:03 UTC
Message-ID
<241D60E0-1687-4DD8-A18C-CF7310DBFAEB@jetbrains.com>
Hello,
is it possible to remove the helping text which appears at the bottom of the Git interactive rebase editor (the one with the list of instructions), and the one which appears at the bottom of the commit editor (which appears on rewording a commit or squashing commits)? 
The texts I'm talking about are:

# Rebase e025896..efc3d17 onto e025896¬ #¬ # Commands:¬ # p, pick = use commit¬ ...

and

# Please enter the commit message for your changes. Lines starting¬ # with '#' will be ignored, and an empty message aborts the commit. # Not currently on any branch.¬ ...

If there is no way to do it now, do you think it makes sense to provide a configuration variable for this, e.g. to introduce more advice.* config variables in addition to existing ones?
My motivation is the following: I'm improving the Git client inside of IntelliJ IDEA IDE and I would like to provide only the plain commit message text to the user (any hints can be shown separately, not inside the editor).
I know I can load the original commit message myself (but I prefer not to make extra calls when possible); and I can parse and strip out the help pages (but it is not very reliable since the text may change in future), so I'd appreciate any other solution to my problem, as well.
However I suppose that experienced command line users could also benefit from such configuration, since this helping text is intended only for newbies and is more like a noise for advanced users.
Next: Alexei Lozovsky
Message 1 of 7 in “Remove help advice text from git editors for interactive rebase and reword”
  1. Kirill LikhodedovJul 23, 2017
  2. Alexei LozovskyJul 23, 2017
  3. Junio C HamanoJul 23, 2017
  4. Kirill LikhodedovJul 23, 2017
  5. Jeff KingJul 24, 2017
  6. SZEDER GáborJul 24, 2017
  7. Junio C HamanoJul 24, 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.