* Ignoring whitespace for diff and rebase
@ 2008-08-15 18:59 Lars Noschinski
0 siblings, 0 replies; only message in thread
From: Lars Noschinski @ 2008-08-15 18:59 UTC (permalink / raw)
To: git
Hello!
Sometimes, I use
git diff -b > ~/tmp/patch
git reset --hard HEAD
git apply ~/tmp/patch
to clean up all only-whitespace changes. But if there are files which
only differ on whitespace, git-diff produces an empty patch block
(what's the correct name for it?) like
diff --git a/hello b/hello
index f2aa86d..ce01362 100644
which git-apply refuses to apply. Is this behaviour of git-diff
intentional or should I try to cook up a patch?
Another combination which does not for for me is --interactive and
--whitespace for rebase:
> git rebase -i --whitespace=strip HEAD^
fatal: Needed a single revision
Invalid base
Is this an implementation bug or lack of a note of incompatibility in
the docs?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-15 19:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-15 18:59 Ignoring whitespace for diff and rebase Lars Noschinski
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).