git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com>
To: "Дилян Палаузов" <dilyan.palauzov@aegee.org>
Cc: git@vger.kernel.org
Subject: Re: rebase has no --cleanup option
Date: Fri, 24 Mar 2023 13:52:26 +0100	[thread overview]
Message-ID: <c16793b7-c4ce-4acf-904d-b844769fe17a@app.fastmail.com> (raw)
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`.

      reply	other threads:[~2023-03-24 12:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-24 12:11 rebase has no --cleanup option Дилян Палаузов
2023-03-24 12:52 ` Kristoffer Haugsbakk [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c16793b7-c4ce-4acf-904d-b844769fe17a@app.fastmail.com \
    --to=kristofferhaugsbakk@fastmail.com \
    --cc=dilyan.palauzov@aegee.org \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).