We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3fbe2d5 + ac1471b commit f3307deCopy full SHA for f3307de
builtin-prune.c
@@ -16,8 +16,15 @@ static struct rev_info revs;
16
17
static int prune_object(char *path, const char *filename, const unsigned char *sha1)
18
{
19
+ char buf[20];
20
+ const char *type;
21
+
22
if (show_only) {
- printf("would prune %s/%s\n", path, filename);
23
+ if (sha1_object_info(sha1, buf, NULL))
24
+ type = "unknown";
25
+ else
26
+ type = buf;
27
+ printf("%s %s\n", sha1_to_hex(sha1), type);
28
return 0;
29
}
30
unlink(mkpath("%s/%s", path, filename));
0 commit comments