Skip to content
  • brian m. carlson's avatar
    sha1_file: convert sha1_object_info* to object_id · abef9020
    brian m. carlson authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Convert sha1_object_info and sha1_object_info_extended to take pointers
    to struct object_id and rename them to use "oid" instead of "sha1" in
    their names.  Update the declaration and definition and apply the
    following semantic patch, plus the standard object_id transforms:
    
    @@
    expression E1, E2;
    @@
    - sha1_object_info(E1.hash, E2)
    + oid_object_info(&E1, E2)
    
    @@
    expression E1, E2;
    @@
    - sha1_object_info(E1->hash, E2)
    + oid_object_info(E1, E2)
    
    @@
    expression E1, E2, E3;
    @@
    - sha1_object_info_extended(E1.hash, E2, E3)
    + oid_object_info_extended(&E1, E2, E3)
    
    @@
    expression E1, E2, E3;
    @@
    - sha1_object_info_extended(E1->hash, E2, E3)
    + oid_object_info_extended(E1, E2, E3)
    
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    abef9020