Merge branch 'dj/log-graph-with-no-walk'
"git log --graph --no-walk A B..." is a otcnflicting request that asks nonsense; no-walk tells us show discrete points in the history, while graph asks to draw connections between these discrete points. Forbid the combination. * dj/log-graph-with-no-walk: revision: forbid combining --graph and --no-walk
This commit is contained in:
@ -2339,6 +2339,8 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, struct s
|
||||
|
||||
if (revs->reflog_info && revs->graph)
|
||||
die("cannot combine --walk-reflogs with --graph");
|
||||
if (revs->no_walk && revs->graph)
|
||||
die("cannot combine --no-walk with --graph");
|
||||
if (!revs->reflog_info && revs->grep_filter.use_reflog_filter)
|
||||
die("cannot use --grep-reflog without --walk-reflogs");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user