git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git apply does not honor diff.noprefix config setting
@ 2018-05-19 23:18 hIpPy
  2018-05-21  2:03 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: hIpPy @ 2018-05-19 23:18 UTC (permalink / raw)
  To: Git Mailing List

If I disable mnemonic prefix,

$ git config --global diff.noprefix true

and do a round-trip of format-patch and apply,

$ git format-patch -1 @
$ git apply <some-file.patch>

git apply fails with,

error: git diff header lacks filename information when removing 1
leading pathname component (line 16)

Without 'diff.noprefix' config setting, git apply works. It seems git
apply does not honor the diff.noprefix config setting.


Thanks,
Rish

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-21  2:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-19 23:18 git apply does not honor diff.noprefix config setting hIpPy
2018-05-21  2:03 ` Junio C Hamano

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).