]> Sergey Matveev's repositories - public-inbox.git/commit
searchidx: index_diff: allow /^$/ line as diff context
authorEric Wong <e@80x24.org>
Fri, 3 Jan 2020 08:45:58 +0000 (08:45 +0000)
committerEric Wong <e@80x24.org>
Sat, 4 Jan 2020 09:34:47 +0000 (09:34 +0000)
commit28bfb760619eb4225b469df900d14fb70741604d
treeb4169767087d9e57dd0cf0d05005f3964296512b
parentaa1e96cd44f6d5cd77a96648ac1f2dbcca9dc367
searchidx: index_diff: allow /^$/ line as diff context

As discovered by solver bug hunting, "git apply" also handles
the case where blank lines w/o leading space are treated as diff
context, apparently because GNU diff once did it:

https://public-inbox.org/git/b507b465f7831612b9d9fc643e3e5218b64e5bfa/s/
lib/PublicInbox/SearchIdx.pm