Code

Grammar fixes for gitattributes documentation
[git.git] / revision.c
index 658471385cfaa2480ee78b19fe38fc51d9b51ab2..48756b5d4466d06123922573e4330fc4344c1dcb 100644 (file)
@@ -1256,8 +1256,8 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
        if (revs->diffopt.output_format & ~DIFF_FORMAT_NO_OUTPUT)
                revs->diff = 1;
 
-       /* Pickaxe needs diffs */
-       if (revs->diffopt.pickaxe)
+       /* Pickaxe and rename following needs diffs */
+       if (revs->diffopt.pickaxe || revs->diffopt.follow_renames)
                revs->diff = 1;
 
        if (revs->topo_order)