#635663 git-format-patch: please add --no-hash option

Package:
git
Source:
git
Description:
fast, scalable, distributed revision control system
Submitter:
Dominic Hargreaves
Date:
2015-12-10 10:06:08 UTC
Severity:
wishlist
#635663#5
Date:
2011-07-27 23:26:43 UTC
From:
To:
I would like to see a --no-hash option added to git-format-patch
which would, like --no-signature, exclude the first line of the
generate patch file:
in order to generate patches to be stored in the master branch. If the
patched branch is rebased (a common mode of operation for git-dpm) the
commit hashes will change, resulting in a noisy diff to the master branch.
The addition of this option would significantly quieten the resultant
diffs. For an example of this problem, you could look at

git://anonscm.debian.org/perl/perl.git

Thanks,
Dominic.

#635663#10
Date:
2015-12-07 03:33:48 UTC
From:
To:
For those who are interested, I've implemented --no-hash and it's being
discussed (with some opposition) on the Git mailing list[0].  The
implementation uses an all-zeros hash instead of omitting the line
altogether, as git uses the "From " header to handle patch detection.

[0] http://thread.gmane.org/gmane.comp.version-control.git/282069

#635663#13
Date:
2015-12-07 03:33:48 UTC
From:
To:
For those who are interested, I've implemented --no-hash and it's being
discussed (with some opposition) on the Git mailing list[0].  The
implementation uses an all-zeros hash instead of omitting the line
altogether, as git uses the "From " header to handle patch detection.

[0] http://thread.gmane.org/gmane.comp.version-control.git/282069

#635663#18
Date:
2015-12-10 10:03:39 UTC
From:
To:
Thanks very much for your work!

Cheers,
Dominic.