diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-09-26 16:09:14 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-26 16:09:14 -0700 |
commit | 85f34a929dc0f8c82f7167fe100d5264d7374876 (patch) | |
tree | b91491510bf7d8165bcfeb1f3a54bf4d36a05318 /contrib/coccinelle/object_id.cocci | |
parent | Fourth batch for 2.11 (diff) | |
parent | use strbuf_addstr() for adding constant strings to a strbuf, part 2 (diff) | |
download | tgif-85f34a929dc0f8c82f7167fe100d5264d7374876.tar.xz |
Merge branch 'rs/cocci'
Code cleanup.
* rs/cocci:
use strbuf_addstr() for adding constant strings to a strbuf, part 2
add coccicheck make target
contrib/coccinelle: fix semantic patch for oid_to_hex_r()
Diffstat (limited to 'contrib/coccinelle/object_id.cocci')
-rw-r--r-- | contrib/coccinelle/object_id.cocci | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/coccinelle/object_id.cocci b/contrib/coccinelle/object_id.cocci index 8ccdbb5666..0307624a03 100644 --- a/contrib/coccinelle/object_id.cocci +++ b/contrib/coccinelle/object_id.cocci @@ -23,16 +23,16 @@ expression E1; + oid_to_hex(E1) @@ -expression E1; +expression E1, E2; @@ -- sha1_to_hex_r(E1.hash) -+ oid_to_hex_r(&E1) +- sha1_to_hex_r(E1, E2.hash) ++ oid_to_hex_r(E1, &E2) @@ -expression E1; +expression E1, E2; @@ -- sha1_to_hex_r(E1->hash) -+ oid_to_hex_r(E1) +- sha1_to_hex_r(E1, E2->hash) ++ oid_to_hex_r(E1, E2) @@ expression E1; |