]> Sergey Matveev's repositories - public-inbox.git/commit
solvergit: use --unidiff-zero with git-apply(1)
authorEric Wong <e@80x24.org>
Thu, 14 Nov 2019 01:03:38 +0000 (01:03 +0000)
committerEric Wong <e@80x24.org>
Thu, 14 Nov 2019 06:42:32 +0000 (06:42 +0000)
commit2dd86683ec2f237538766d4d632de7cb2dd0f3e3
tree2c988253884a406003e1382091211eb1ccd2485b
parentf908cdcc48ae3b7e67d85c2059169f2e22384d1f
solvergit: use --unidiff-zero with git-apply(1)

I sometimes post context-free documentation patches generated
with "-U0" to reduce size and bandwidth overhead when replacing
URLs or updating copyright notices.  git-apply(1) needs the
--unidiff-zero switch to work properly with context-free
patches.

Given our search looks for blob OIDs, and we're never going
to be running the code we regenerate, "--unidiff-zero" ought
to be safe.
lib/PublicInbox/SolverGit.pm