diff options
Diffstat (limited to 'builtin/mktag.c')
-rw-r--r-- | builtin/mktag.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/builtin/mktag.c b/builtin/mktag.c index 5d22909122..44fa56eff3 100644 --- a/builtin/mktag.c +++ b/builtin/mktag.c @@ -1,7 +1,10 @@ #include "builtin.h" +#include "gettext.h" +#include "hex.h" #include "parse-options.h" #include "tag.h" #include "replace-object.h" +#include "object-file.h" #include "object-store.h" #include "fsck.h" #include "config.h" @@ -51,7 +54,8 @@ static int verify_object_in_tag(struct object_id *tagged_oid, int *tagged_type) void *buffer; const struct object_id *repl; - buffer = read_object_file(tagged_oid, &type, &size); + buffer = repo_read_object_file(the_repository, tagged_oid, &type, + &size); if (!buffer) die(_("could not read tagged object '%s'"), oid_to_hex(tagged_oid)); @@ -80,7 +84,7 @@ int cmd_mktag(int argc, const char **argv, const char *prefix) int tagged_type; struct object_id result; - argc = parse_options(argc, argv, NULL, + argc = parse_options(argc, argv, prefix, builtin_mktag_options, builtin_mktag_usage, 0); |