Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2018-03-12 05:27:23 +0300
committerJunio C Hamano <gitster@pobox.com>2018-03-14 19:23:47 +0300
commitfc5cb99f675b2052f6d6bd3e2520379031b12267 (patch)
tree9f45a583e635e24dafac4a5bf6118142314e4c6c /builtin/write-tree.c
parent38b471fae0f2b961259201278b24b11262dc7596 (diff)
cache-tree: convert write_*_as_tree to object_id
Convert write_index_as_tree and write_cache_as_tree to use struct object_id. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/write-tree.c')
-rw-r--r--builtin/write-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/write-tree.c b/builtin/write-tree.c
index 299a121531c..c9d3c544e79 100644
--- a/builtin/write-tree.c
+++ b/builtin/write-tree.c
@@ -38,7 +38,7 @@ int cmd_write_tree(int argc, const char **argv, const char *unused_prefix)
argc = parse_options(argc, argv, unused_prefix, write_tree_options,
write_tree_usage, 0);
- ret = write_cache_as_tree(oid.hash, flags, prefix);
+ ret = write_cache_as_tree(&oid, flags, prefix);
switch (ret) {
case 0:
printf("%s\n", oid_to_hex(&oid));