Staging
v0.8.1
https://github.com/git/git
Raw File
Tip revision: 66d2a6159f511924e7e0b8a21c93538879bfd622 authored by Johannes Schindelin on 04 December 2019, 18:58:46 UTC
Git 2.14.6
Tip revision: 66d2a61
object_id.cocci
@@
expression E1;
@@
- is_null_sha1(E1.hash)
+ is_null_oid(&E1)

@@
expression E1;
@@
- is_null_sha1(E1->hash)
+ is_null_oid(E1)

@@
expression E1;
@@
- sha1_to_hex(E1.hash)
+ oid_to_hex(&E1)

@@
identifier f != oid_to_hex;
expression E1;
@@
  f(...) {...
- sha1_to_hex(E1->hash)
+ oid_to_hex(E1)
  ...}

@@
expression E1, E2;
@@
- sha1_to_hex_r(E1, E2.hash)
+ oid_to_hex_r(E1, &E2)

@@
identifier f != oid_to_hex_r;
expression E1, E2;
@@
   f(...) {...
- sha1_to_hex_r(E1, E2->hash)
+ oid_to_hex_r(E1, E2)
  ...}

@@
expression E1;
@@
- hashclr(E1.hash)
+ oidclr(&E1)

@@
identifier f != oidclr;
expression E1;
@@
  f(...) {...
- hashclr(E1->hash)
+ oidclr(E1)
  ...}

@@
expression E1, E2;
@@
- hashcmp(E1.hash, E2.hash)
+ oidcmp(&E1, &E2)

@@
identifier f != oidcmp;
expression E1, E2;
@@
  f(...) {...
- hashcmp(E1->hash, E2->hash)
+ oidcmp(E1, E2)
  ...}

@@
expression E1, E2;
@@
- hashcmp(E1->hash, E2.hash)
+ oidcmp(E1, &E2)

@@
expression E1, E2;
@@
- hashcmp(E1.hash, E2->hash)
+ oidcmp(&E1, E2)

@@
expression E1, E2;
@@
- hashcpy(E1.hash, E2.hash)
+ oidcpy(&E1, &E2)

@@
identifier f != oidcpy;
expression E1, E2;
@@
  f(...) {...
- hashcpy(E1->hash, E2->hash)
+ oidcpy(E1, E2)
  ...}

@@
expression E1, E2;
@@
- hashcpy(E1->hash, E2.hash)
+ oidcpy(E1, &E2)

@@
expression E1, E2;
@@
- hashcpy(E1.hash, E2->hash)
+ oidcpy(&E1, E2)
back to top