* [REQUEST] another --cleanup mode for commit
@ 2015-02-21 17:48 Christoph Anton Mitterer
0 siblings, 0 replies; only message in thread
From: Christoph Anton Mitterer @ 2015-02-21 17:48 UTC (permalink / raw)
To: git
[-- Attachment #1: Type: text/plain, Size: 932 bytes --]
Hey.
Right now, all --cleanup modes for commit (except verbatim) seem to
remove all "unnecessary" whitespace and collapse consecutive empty
lines.
I use already vim to show me any such things and when I don't remove it
then, this usually means I want to have it intentionally (especially
consecutive empty lines).
Now obviously I could do things like --no-status, but I actually like
the status to be shown - as I like it to be automatically removed. ;-)
So it would be great if one could have another cleanup mode which
basically does just the following:
- remove any trailing lines that start with # and the one newline (which
is automatically added with the status) before these
e.g.
foo
#bar
#status
yields in:
foo
#bar
e.g.
foo
#bar
#status
yields in:
foo
- apart form that, leave any whitespace, new lines, etc. as is
Cheers,
Chris.
[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 5313 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-21 17:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-21 17:48 [REQUEST] another --cleanup mode for commit Christoph Anton Mitterer
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 NNTP newsgroup(s).