[PATCH v2 0/3] format-patch: introduce option to suppress commit hashes
- From
brian m. carlson <sandals@crustytoothpaste.net>
- Date
- Dec 13, 2015, 17:27 UTC
- Message-ID
- <1450027638-788102-1-git-send-email-sandals@crustytoothpaste.net>
git format-patch is often used to create patches that are then stored in version control or displayed with diff. Having the commit hash in the "From " line usually just creates diff noise in these cases, so this series introduces --zero-commit to set that to all zeros.
Changes from v1: * Rename the option --zero-commit. * Improve the tests to look for a 40-hex hash value in "From " header.
brian m. carlson (3): Introduce a null_oid constant. format-patch: add an option to suppress commit hash format-patch: check that header line has expected format
Documentation/git-format-patch.txt | 4 ++++ builtin/log.c | 5 +++++ cache.h | 1 + log-tree.c | 3 ++- revision.h | 1 + sha1_file.c | 1 + t/t4014-format-patch.sh | 12 ++++++++++++ 7 files changed, 26 insertions(+), 1 deletion(-)