-
Reordering file diffs that make up a patch does not affect the ID. In particular, two patches produced by comparing the same two trees with two different settings for
-O<orderfile> result in the same patch ID signature, thereby allowing the computed result to be used as a key to index some meta-information about the change between the two trees. -
The result is different from the value produced by Git 1.9 and older or produced when an "unstable" hash (see
--unstablebelow) is configured - even when used on a diff output taken without any use of-O<orderfile>, thereby making existing databases storing such "unstable" or historical patch IDs unusable. -
All whitespace within the patch is ignored and does not affect the ID.