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

Re: rebase has no --cleanup option

From
KHKristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>
Date
Mar 24, 2023, 12:52 UTC
Message-ID
<c16793b7-c4ce-4acf-904d-b844769fe17a@app.fastmail.com>
In-Reply-To
<e2ceba47235e2f7e4f6889954111044d@aegee.org>
Hi Дилян
On Fri, Mar 24, 2023, at 13:11, Дилян Палаузов wrote:
> Hello,
>
> in rare cases I want to write commit messages with leading # sign

Have you considered changing your `commentchar` to something else that you never use as a leading character in the message proper? For example `%`:

    [core]
            commentchar = %
Looks like:
    git: temporary for demonstration
    % Please enter the commit message for your changes. Lines starting
    % with '%' will be ignored, and an empty message aborts the commit.
    %
    % Date:      Fri Mar 24 13:45:28 2023 +0100
    %
    % On branch master
    % Your branch is ahead of '<remote branch>' by 57 commits.
    %   (use "git push" to publish your local commits)
    %
    % Changes to be committed:
    %	modified:   config/.config/git/config
    %
    % Untracked files:
    %	config/.config/git/gitk
    %

That’s at least what I would do if I used leading `#` since it seems like less trouble than having to change `cleanup`.

Previous: Дилян Палаузов
Message 2 of 2 in “rebase has no --cleanup option”
  1. Дилян ПалаузовMar 24, 2023
  2. Kristoffer HaugsbakkMar 24, 2023

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.