diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2016-09-05 20:08:07 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-07 12:59:43 -0700 |
commit | 151b2911c1279f3ea4b5bcc069a04348aeb9d811 (patch) | |
tree | 85f195244e3e81f7be62a0bcf78a6fb1b7781040 /builtin/checkout.c | |
parent | 71445a0fef6a539dc283e57d19740fe5445e9b86 (diff) | |
download | git-151b2911c1279f3ea4b5bcc069a04348aeb9d811.tar.gz |
sha1_name: convert get_sha1_mb to struct object_id
All of the callers of this function use struct object_id, so rename it
to get_oid_mb and make it take struct object_id instead of
unsigned char *.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/checkout.c')
-rw-r--r-- | builtin/checkout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c index 13169221b1..8013a1b8b4 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -973,7 +973,7 @@ static int parse_branchname_arg(int argc, const char **argv, if (!strcmp(arg, "-")) arg = "@{-1}"; - if (get_sha1_mb(arg, rev->hash)) { + if (get_oid_mb(arg, rev)) { /* * Either case (3) or (4), with <something> not being * a commit, or an attempt to use case (1) with an |