summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-12 16:37:49 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-12 16:37:49 (GMT)
commit206de27efac383cecc3d0f938e220dc359be36c1 (patch)
tree244cbf4876f89cc664ba565b73d1a53d3e6f7084 /diff.c
parent025a0709b6179506ffc0d35967bdd4fb804d30fb (diff)
downloadgit-206de27efac383cecc3d0f938e220dc359be36c1.zip
git-206de27efac383cecc3d0f938e220dc359be36c1.tar.gz
git-206de27efac383cecc3d0f938e220dc359be36c1.tar.bz2
git-apply: ignore empty git headers
A meaningful (ie non-empty) git patch always has more information in the header than just the "diff --git" line itself: it needs to have either a patch associated with it (which implies "---" and "+++" lines in the header) or it needs to have rename/copy/delete/create information in it. Just ignore git patches which have no change information. Otherwise we'll end up with a patch that doesn't have filenames etc filled in, and we'll be unhappy.
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions