Re: [PATCH v2 2/3] format-patch: add an option to suppress commit hash

2015-12-14 Thread Junio C Hamano
"brian m. carlson" writes: > +test_expect_success 'format-patch --zero-commit' ' > + git format-patch --zero-commit --stdout v2..v1 >patch2 && > + cnt=$(egrep "^From 0{40} Mon Sep 17 00:00:00 2001" patch2 | wc -l) && > + test $cnt = 3 > +' This test is not wrong per-se, but it makes

[PATCH v2 2/3] format-patch: add an option to suppress commit hash

2015-12-13 Thread brian m. carlson
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