summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-12-01 18:04:36 +0100
committerJunio C Hamano <gitster@pobox.com>2019-12-01 18:04:36 +0100
commitf1654576184aa131a3031f0e64cca7bde4def350 (patch)
treee12601c1b710f90291fd5062a6fc9e3b9576935c /contrib
parentMerge branch 'dj/typofix-merge-strat' (diff)
parenthex: drop sha1_to_hex() (diff)
downloadgit-f1654576184aa131a3031f0e64cca7bde4def350.tar.xz
git-f1654576184aa131a3031f0e64cca7bde4def350.zip
Merge branch 'jk/remove-sha1-to-hex'
Code clean-up. * jk/remove-sha1-to-hex: hex: drop sha1_to_hex() hex: drop sha1_to_hex_r()
Diffstat (limited to 'contrib')
-rw-r--r--contrib/coccinelle/object_id.cocci32
1 files changed, 0 insertions, 32 deletions
diff --git a/contrib/coccinelle/object_id.cocci b/contrib/coccinelle/object_id.cocci
index 3e536a9834..ddf4f22bd7 100644
--- a/contrib/coccinelle/object_id.cocci
+++ b/contrib/coccinelle/object_id.cocci
@@ -13,38 +13,6 @@ struct object_id *OIDPTR;
@@
struct object_id OID;
@@
-- sha1_to_hex(OID.hash)
-+ oid_to_hex(&OID)
-
-@@
-identifier f != oid_to_hex;
-struct object_id *OIDPTR;
-@@
- f(...) {<...
-- sha1_to_hex(OIDPTR->hash)
-+ oid_to_hex(OIDPTR)
- ...>}
-
-@@
-expression E;
-struct object_id OID;
-@@
-- sha1_to_hex_r(E, OID.hash)
-+ oid_to_hex_r(E, &OID)
-
-@@
-identifier f != oid_to_hex_r;
-expression E;
-struct object_id *OIDPTR;
-@@
- f(...) {<...
-- sha1_to_hex_r(E, OIDPTR->hash)
-+ oid_to_hex_r(E, OIDPTR)
- ...>}
-
-@@
-struct object_id OID;
-@@
- hashclr(OID.hash)
+ oidclr(&OID)