builtin/prune: convert to struct object_id

Convert the sole instance of unsigned char [20] to struct object_id. cmd_prune is a caller of parse_object, which we will convert later. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed May 1, 2017 at 02:28 UTC af6730e7303d3025a8f50192e0f54acc74142484
1 file changed +3 -3
builtin/prune.c
+3 -3
@@ -123,11 +123,11 @@ int cmd_prune(int argc, const char **argv, const char *prefix)
123 die(_("cannot prune in a precious-objects repo"));
124
125 while (argc--) {
126 - unsigned char sha1[20];
126 + struct object_id oid;
127 const char *name = *argv++;
128
129 - if (!get_sha1(name, sha1)) {
130 - struct object *object = parse_object_or_die(sha1, name);
129 + if (!get_oid(name, &oid)) {
130 + struct object *object = parse_object_or_die(oid.hash, name);
131 add_pending_object(&revs, object, "");
132 }
133 else