diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2019-08-18 20:04:20 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-08-19 22:04:59 (GMT) |
commit | 8d4d86b0f0a875e7916d7de083a88d7f11251406 (patch) | |
tree | 1b99e2d667ac3845e60f32e69862eed1a9b38ec6 /builtin/clone.c | |
parent | f6ca67d673c66e5c3988a18c2ec56b7fef9a23b6 (diff) | |
download | git-8d4d86b0f0a875e7916d7de083a88d7f11251406.zip git-8d4d86b0f0a875e7916d7de083a88d7f11251406.tar.gz git-8d4d86b0f0a875e7916d7de083a88d7f11251406.tar.bz2 |
cache: remove null_sha1
All of the existing uses of null_sha1 can be converted into uses of
null_oid, so do so. Remove null_sha1 and is_null_sha1, and define
is_null_oid in terms of null_oid. This also has the additional benefit
of removing several uses of sha1_to_hex.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/clone.c')
-rw-r--r-- | builtin/clone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/clone.c b/builtin/clone.c index f665b28..eabd028 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -785,7 +785,7 @@ static int checkout(int submodule_progress) if (write_locked_index(&the_index, &lock_file, COMMIT_LOCK)) die(_("unable to write new index file")); - err |= run_hook_le(NULL, "post-checkout", sha1_to_hex(null_sha1), + err |= run_hook_le(NULL, "post-checkout", oid_to_hex(&null_oid), oid_to_hex(&oid), "1", NULL); if (!err && (option_recurse_submodules.nr > 0)) { |