summaryrefslogtreecommitdiff
path: root/Documentation/git-format-patch.txt
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2015-12-15 01:52:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-12-15 18:03:40 (GMT)
commit3a30aa17879b08f96262abb9a22c7bbe8f56e4c9 (patch)
treeace01289693a796bfb19661e6ed78d1b81381859 /Documentation/git-format-patch.txt
parent3e56e7245c37ce57dde72ec74ee2df41ce603dda (diff)
downloadgit-3a30aa17879b08f96262abb9a22c7bbe8f56e4c9.zip
git-3a30aa17879b08f96262abb9a22c7bbe8f56e4c9.tar.gz
git-3a30aa17879b08f96262abb9a22c7bbe8f56e4c9.tar.bz2
format-patch: add an option to suppress commit hash
Oftentimes, patches created by git format-patch will be stored in version control or compared with diff. In these cases, two otherwise identical patches can have different commit hashes, leading to diff noise. Teach git format-patch a --zero-commit option that instead produces an all-zero hash to avoid this diff noise. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-format-patch.txt')
-rw-r--r--Documentation/git-format-patch.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/git-format-patch.txt b/Documentation/git-format-patch.txt
index 4035649..e3cdaeb 100644
--- a/Documentation/git-format-patch.txt
+++ b/Documentation/git-format-patch.txt
@@ -256,6 +256,10 @@ you can use `--suffix=-patch` to get `0001-description-of-my-change-patch`.
using this option cannot be applied properly, but they are
still useful for code review.
+--zero-commit::
+ Output an all-zero hash in each patch's From header instead
+ of the hash of the commit.
+
--root::
Treat the revision argument as a <revision range>, even if it
is just a single commit (that would normally be treated as a