From: brian m. carlson Date: Fri, 24 Jun 2016 23:09:21 +0000 (+0000) Subject: coccinelle: convert hashcpy() with null_sha1 to hashclr() X-Git-Tag: v2.10.0-rc0~110^2~8 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/f449198e58630b8b57c94e3eeab4927afd7ee03a?ds=sidebyside;hp=f449198e58630b8b57c94e3eeab4927afd7ee03a coccinelle: convert hashcpy() with null_sha1 to hashclr() hashcpy with null_sha1 as the source is equivalent to hashclr. In addition to being simpler, using hashclr may give the compiler a chance to optimize better. Convert instances of hashcpy with the source argument of null_sha1 to hashclr. This transformation was implemented using the following semantic patch: @@ expression E1; @@ -hashcpy(E1, null_sha1); +hashclr(E1); Signed-off-by: brian m. carlson Signed-off-by: Junio C Hamano ---