Skip to content

Commit a710522

Browse files
chungagitster
authored andcommitted
revision.c: make --date-order overriddable
Jan Engelhardt noticed that while --topo-order can be overridden by a subsequent --date-order, the reverse was not possible. That's because setup_revisions() failed to set revs->lifo properly. Signed-off-by: Michele Ballabio <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 055b661 commit a710522

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

revision.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,7 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
10191019
continue;
10201020
}
10211021
if (!strcmp(arg, "--topo-order")) {
1022+
revs->lifo = 1;
10221023
revs->topo_order = 1;
10231024
continue;
10241025
}

0 commit comments

Comments
 (0)