git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "Дилян Палаузов" <dilyan.palauzov@aegee.org>
To: git@vger.kernel.org
Subject: rebase has no --cleanup option
Date: Fri, 24 Mar 2023 13:11:06 +0100	[thread overview]
Message-ID: <e2ceba47235e2f7e4f6889954111044d@aegee.org> (raw)

Hello,

in rare cases I want to write commit messages with leading # sign and 
for these messages I call “git commit --cleanup==whitespace”.  So far, 
so good.

Now I want to rebase - modify (edit) the commit message of an old 
commit, or squash a commit, which has leading # in its comment.  I 
cannot pass --cleanup=whitespace and this is the problem description 
here — the #-lines disappear after rebase (edit/squash operations).

In theory I could set the commit.cleanup configuration parameter (in 
.gitconfig), but I prefer not to do this, as I do not want to disable 
permanently the stripping of lines with leading # in git commit 
messages.

Please add --cleanup= option to the rebase command.

I use here the command-line git client 2.39.2, not a GUI or whatsoever.

Kind regards
   Дилян

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

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

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=e2ceba47235e2f7e4f6889954111044d@aegee.org \
    --to=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).