cocci: apply the "cache.h" part of "the_repository.pending"
Apply the part of "the_repository.pending.cocci" pertaining to "cache.h". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
7258e892d2
commit
d850b7a545
@@ -168,7 +168,7 @@ int cmd_prune(int argc, const char **argv, const char *prefix)
|
||||
struct object_id oid;
|
||||
const char *name = *argv++;
|
||||
|
||||
if (!get_oid(name, &oid)) {
|
||||
if (!repo_get_oid(the_repository, name, &oid)) {
|
||||
struct object *object = parse_object_or_die(&oid,
|
||||
name);
|
||||
add_pending_object(&revs, object, "");
|
||||
|
||||
Reference in New Issue
Block a user