contrib/examples/git-revert.sh: use the $( ... ) construct for command substitution
[gitweb.git] / builtin / rev-parse.c
index 9985949ccc1d64a6ee0284487ccf4e1776cb4647..7e074aad408ee7d63d86643878ff5c5bb311f732 100644 (file)
@@ -282,7 +282,7 @@ static int try_difference(const char *arg)
                        exclude = get_merge_bases(a, b);
                        while (exclude) {
                                struct commit *commit = pop_commit(&exclude);
-                               show_rev(REVERSED, get_object_hash(commit->object), NULL);
+                               show_rev(REVERSED, commit->object.oid.hash, NULL);
                        }
                }
                *dotdot = '.';
@@ -319,7 +319,7 @@ static int try_parent_shorthands(const char *arg)
        commit = lookup_commit_reference(sha1);
        for (parents = commit->parents; parents; parents = parents->next)
                show_rev(parents_only ? NORMAL : REVERSED,
-                               get_object_hash(parents->item->object), arg);
+                               parents->item->object.oid.hash, arg);
 
        *dotdot = '^';
        return 1;