git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Anton Mitterer <calestyo@scientia.net>
To: git@vger.kernel.org
Subject: [REQUEST] another --cleanup mode for commit
Date: Sat, 21 Feb 2015 18:48:31 +0100	[thread overview]
Message-ID: <1424540911.15539.23.camel@scientia.net> (raw)

[-- 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 --]

                 reply	other threads:[~2015-02-21 17:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

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

  git send-email \
    --in-reply-to=1424540911.15539.23.camel@scientia.net \
    --to=calestyo@scientia.net \
    --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.
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).