]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin-diff.c
Fix git-diff A...B
[thirdparty/git.git] / builtin-diff.c
index dd9886c6e81030bfd893089e5d2a34fe710f0ba7..a090e298a55ef110a6fdd0e0dde54ea744a52f76 100644 (file)
@@ -349,6 +349,7 @@ int cmd_diff(int argc, const char **argv, const char *prefix)
                 * A and B.  We have ent[0] == merge-base, ent[1] == A,
                 * and ent[2] == B.  Show diff between the base and B.
                 */
+               ent[1] = ent[2];
                return builtin_diff_tree(&rev, argc, argv, ent);
        }
        else