]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/log.c
Merge branch 'js/range-diff-wo-dotdot'
[thirdparty/git.git] / builtin / log.c
index d0cbaaf68a083f0cfa3294804f606b5cb6dff5c4..a00da91a1f0c37ed26b658324d23be3d828a89ef 100644 (file)
@@ -1672,7 +1672,7 @@ static void infer_range_diff_ranges(struct strbuf *r1,
                                    struct commit *head)
 {
        const char *head_oid = oid_to_hex(&head->object.oid);
-       int prev_is_range = !!strstr(prev, "..");
+       int prev_is_range = is_range_diff_range(prev);
 
        if (prev_is_range)
                strbuf_addstr(r1, prev);