]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'jk/format-patch-ignore-noprefix'
authorJunio C Hamano <gitster@pobox.com>
Tue, 21 Mar 2023 21:18:55 +0000 (14:18 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Mar 2023 21:18:55 +0000 (14:18 -0700)
commit15108de2fa0cd8f002a0551d14c84505a853071c
treeffdbcfd36b7f18eba44b8733c4df582303433000
parente25cabbf6b34e4a6e903d65102d87055cc994778
parentab89575387c02ea024163256826ad1c6dd2e4247
Merge branch 'jk/format-patch-ignore-noprefix'

"git format-patch" honors the src/dst prefixes set to nonstandard
values with configuration variables like "diff.noprefix", causing
receiving end of the patch that expects the standard -p1 format to
break.  Teach "format-patch" to ignore end-user configuration and
always use the standard prefixes.

This is a backward compatibility breaking change.

* jk/format-patch-ignore-noprefix:
  rebase: prefer --default-prefix to --{src,dst}-prefix for format-patch
  format-patch: add format.noprefix option
  format-patch: do not respect diff.noprefix
  diff: add --default-prefix option
  t4013: add tests for diff prefix options
  diff: factor out src/dst prefix setup
builtin/log.c
builtin/rebase.c
diff.c
diff.h
t/t4014-format-patch.sh