rebase has no --cleanup option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
  Дилян



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux