- if (argc != 3 || get_sha1_hex(argv[2], sha1))
- usage("cat-file [-t | tagname] <sha1>");
- buf = read_sha1_file(sha1, type, &size);
- if (!buf)
- die("cat-file %s: bad file", argv[2]);
+ if (argc != 3 || get_sha1(argv[2], sha1))
+ usage("git-cat-file [-t | tagname] <sha1>");
+