• brian m. carlson's avatar
    refs: convert resolve_ref_unsafe to struct object_id · 49e61479
    brian m. carlson authored
    Convert resolve_ref_unsafe to take a pointer to struct object_id by
    converting one remaining caller to use struct object_id, removing the
    temporary NULL pointer check in expand_ref, converting the declaration
    and definition, and applying the following semantic patch:
    
    @@
    expression E1, E2, E3, E4;
    @@
    - resolve_ref_unsafe(E1, E2, E3.hash, E4)
    + resolve_ref_unsafe(E1, E2, &E3, E4)
    
    @@
    expression E1, E2, E3, E4;
    @@
    - resolve_ref_unsafe(E1, E2, E3->hash, E4)
    + resolve_ref_unsafe(E1, E2, E3, E4)
    Signed-off-by: brian m. carlson's avatarbrian m. carlson <sandals@crustytoothpaste.net>
    Signed-off-by: 's avatarJunio C Hamano <gitster@pobox.com>
    49e61479
worktree.c 9.12 KB