From: Junio C Hamano <gitster@pobox.com>
To: "Peter Valdemar Mørch (Lists)" <4ux6as402@sneakemail.com>
Cc: git@vger.kernel.org
Subject: Re: How to fix (and find) many git-* --check errors?
Date: Fri, 08 Aug 2008 12:27:18 -0700 [thread overview]
Message-ID: <7viqubcnop.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <489C40BC.8000008@sneakemail.com> (Peter Valdemar Mørch's message of "Fri, 08 Aug 2008 14:49:00 +0200")
"Peter Valdemar Mørch (Lists)" <4ux6as402@sneakemail.com> writes:
> We have > 37000 white space "errors" in HEAD, mostly trailing
> whitespace, and I'm looking for a
>
> $ git diff --check | git??? --whitespace=fix
>
> command.
Starting from a clean checkout, you could do something like this:
$ git reset --hard
$ rm .git/index
$ git diff --binary -R HEAD >P.diff
$ git apply --whitespace=fix --cached <P.diff
$ git commit -m "Fixed all whitespace gotchas"
P.diff contains essentially everything, and you are recreating everything
from that patch.
next prev parent reply other threads:[~2008-08-08 19:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-08 12:49 How to fix (and find) many git-* --check errors? "Peter Valdemar Mørch (Lists)"
2008-08-08 13:23 ` Jeff King
2008-08-08 13:28 ` Björn Steinbrink
2008-08-08 14:57 ` "Peter Valdemar Mørch (Lists)"
2008-08-08 19:27 ` Junio C Hamano [this message]
2008-08-09 7:28 ` "Peter Valdemar Mørch (Lists)"
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=7viqubcnop.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=4ux6as402@sneakemail.com \
--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).