summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-03-12 02:27:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-14 16:23:49 (GMT)
commite816caa07b8acb5c8ed2d467666ca819fb80bc58 (patch)
treee0aac93a403f0c20f3e2e66b33bec4924c3fc6b5 /commit.c
parent83eb08020cbce4f6dff93e6b67ce635a3cd657f0 (diff)
downloadgit-e816caa07b8acb5c8ed2d467666ca819fb80bc58.zip
git-e816caa07b8acb5c8ed2d467666ca819fb80bc58.tar.gz
git-e816caa07b8acb5c8ed2d467666ca819fb80bc58.tar.bz2
sha1_file: convert assert_sha1_type to object_id
Convert this function to take a pointer to struct object_id and rename it to assert_oid_type. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit.c b/commit.c
index 00c99c7..6d77787 100644
--- a/commit.c
+++ b/commit.c
@@ -1517,7 +1517,7 @@ int commit_tree_extended(const char *msg, size_t msg_len,
int encoding_is_utf8;
struct strbuf buffer;
- assert_sha1_type(tree->hash, OBJ_TREE);
+ assert_oid_type(tree, OBJ_TREE);
if (memchr(msg, '\0', msg_len))
return error("a NUL byte in commit log message not allowed.");