Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Samuel Bronson <naesten@gmail.com>
To: gdb@sourceware.org
Subject: Re: Trailing Whitespace
Date: Fri, 10 Jan 2014 03:44:00 -0000	[thread overview]
Message-ID: <loom.20140110T042711-984@post.gmane.org> (raw)
In-Reply-To: <52CEEE7B.50506@samersoff.net>

Dmitry Samersoff <dms <at> samersoff.net> writes:

> IMHO, better approach is to install on-commit hook blocking commits
> with trailing whitespace (and tab characters) and leave old code as is.

Unfortunately, commit hooks have to be set up in every local copy of the
repository, which I can't see happening.

On the other hand, there *is* a sample "pre-commit" hook to catch trailing
whitespace installed by default in every new git repository, so it would be
as simple as running "mv .git/hooks/pre-commit{.sample,}".


  reply	other threads:[~2014-01-10  3:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-19  0:19 Ben Longbons
2014-01-09 14:45 ` Gary Benson
2014-01-09 14:57   ` Phil Muldoon
2014-01-09 15:01     ` Joel Brobecker
2014-01-09 18:46       ` Dmitry Samersoff
2014-01-10  3:44         ` Samuel Bronson [this message]
2014-01-10  4:00           ` Joel Brobecker

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=loom.20140110T042711-984@post.gmane.org \
    --to=naesten@gmail.com \
    --cc=gdb@sourceware.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