dont use reverse diff
authorHiltjo Posthuma <hiltjo@codemadness.org>
Mon, 7 Dec 2015 19:00:33 +0000 (20:00 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Mon, 7 Dec 2015 19:00:33 +0000 (20:00 +0100)
urmoms.c

index 44a42539394fcb7df74db5fe42ddc5375d67f88e..28f185afe840da3bfbc2c60811a1604b589563ae 100644 (file)
--- a/urmoms.c
+++ b/urmoms.c
@@ -231,7 +231,7 @@ printshowfile(git_commit *commit)
                goto err;
        if ((error = git_commit_tree(&parent_tree, parent)))
                goto err;
-       if ((error = git_diff_tree_to_tree(&diff, repo, commit_tree, parent_tree, NULL)))
+       if ((error = git_diff_tree_to_tree(&diff, repo, parent_tree, commit_tree, NULL)))
                goto err;
 
        /* diff stat */
@@ -346,7 +346,7 @@ writelog(FILE *fp)
                        continue; /* TODO: handle error */
                if ((error = git_commit_tree(&parent_tree, parent)))
                        continue; /* TODO: handle error */
-               if ((error = git_diff_tree_to_tree(&diff, repo, commit_tree, parent_tree, NULL)))
+               if ((error = git_diff_tree_to_tree(&diff, repo, parent_tree, commit_tree, NULL)))
                        continue; /* TODO: handle error */
                if (git_diff_get_stats(&stats, diff))
                        continue; /* TODO: handle error */