[REQUEST] another --cleanup mode for commit

From: Christoph Anton Mitterer <hidden>
Date: 2016-06-15 23:03:53

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.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help