Skip to content

format-patch: Transition the default to --from to avoid spoofed mails

Josh Triplett git 2 versions In review

Get series with b4
b4 am 20160730191104.2ps5k7eji7aqgufg@x

Versions newest first · linked by author and title

  1. v2 Latest2 patches 7 repliesIn review
  2. v10 of 2 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2format-patch: Add a config option format.from to set the default for --fromDocumentation/config.txt builtin/log.c contrib/completion/git-completion.bash +1 more+63 -15 replies
2/2format-patch: Default to --fromDocumentation/config.txt builtin/log.c t/t4014-format-patch.sh+27 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] format-patch: Transition the default to --from to avoid spoofed mails

As discussed, this patch series allows transitioning the default behavior of format-patch to --from, to avoid spoofing mails when formatting commits not written by the user.

The first patch introduces the format.from option to set the default value of format-patch --from. This patch doesn't change the default behavior of format-patch, so it can go in without any transition.

The second patch changes the default to --from. If you'd like to delay this patch for a release and mention the planned change in the release notes, let me know and I'll provide text for the release notes; if you don't think this needs a transition period, you can go ahead and apply the second patch.

v2: Unify the various places setting from into a single helper function.

Josh Triplett (2):
format-patch: Add a config option format.from to set the default for --from
format-patch: Default to --from

 Documentation/config.txt               | 10 ++++-
 builtin/log.c                          | 47 +++++++++++++++----
 contrib/completion/git-completion.bash |  1 +-
 t/t4014-format-patch.sh                | 68 +++++++++++++++++++++++++--
 4 files changed, 114 insertions(+), 12 deletions(-)
Signature · 1 line
git-series 0.8.7