refs.c: kill register_ref_store(), add register_submodule_ref_store()
[gitweb.git] / builtin / rev-list.c
index 8479f6ed28aa75d01350fc17eafbded0b52dca84..0aa93d58919742852b05b952e8e35b5270f74ba8 100644 (file)
@@ -145,7 +145,7 @@ static void show_commit(struct commit *commit, void *data)
                         */
                        if (buf.len && buf.buf[buf.len - 1] == '\n')
                                graph_show_padding(revs->graph);
-                       putchar('\n');
+                       putchar(info->hdr_termination);
                } else {
                        /*
                         * If the message buffer is empty, just show
@@ -237,7 +237,7 @@ static int show_bisect_vars(struct rev_list_info *info, int reaches, int all)
                cnt = reaches;
 
        if (revs->commits)
-               sha1_to_hex_r(hex, revs->commits->item->object.oid.hash);
+               oid_to_hex_r(hex, &revs->commits->item->object.oid);
 
        if (flags & BISECT_SHOW_ALL) {
                traverse_commit_list(revs, show_commit, show_object, info);