diff options
author | Eric Wong <e@80x24.org> | 2023-10-01 09:54:22 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-10-01 22:41:45 +0000 |
commit | d3f4fcd36fda8cc56b3fa6931935b91a579d4fa0 (patch) | |
tree | 6632f9080135d333a30e3e9393a8621e0fd62888 /lib/PublicInbox/LeiRediff.pm | |
parent | f7bb1094391e45978d40a79da05a6ce96823725e (diff) | |
download | public-inbox-d3f4fcd36fda8cc56b3fa6931935b91a579d4fa0.tar.gz |
lei rediff: `git diff -O<order-file>' support
We can't use the `-O' switch since it conflicts with --only|-O= to specify externals. Thus we'll introduce a more verbose `--order-file=FILE' option when running `git diff'.
Diffstat (limited to 'lib/PublicInbox/LeiRediff.pm')
-rw-r--r-- | lib/PublicInbox/LeiRediff.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/LeiRediff.pm b/lib/PublicInbox/LeiRediff.pm index efd24d17..6cc6131b 100644 --- a/lib/PublicInbox/LeiRediff.pm +++ b/lib/PublicInbox/LeiRediff.pm @@ -82,6 +82,7 @@ sub _lei_diff_prepare ($$) { push @$cmd, $c ? "-$c" : "--$o"; } } + push(@$cmd, "-O$opt->{'order-file'}") if $opt->{'order-file'}; } sub diff_ctxq ($$) { |