From 69aae724c3d05a20219e5a9642e162dd65ef2fe9 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 4 Aug 2018 11:18:29 +0100 Subject: [PATCH] git-debrebase: Support --dgit option for finding dgit Nothing uses this yet. Signed-off-by: Ian Jackson --- git-debrebase | 2 ++ git-debrebase.1.pod | 6 ++++++ tests/lib-gdr | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/git-debrebase b/git-debrebase index eb0acb21..b51c7148 100755 --- a/git-debrebase +++ b/git-debrebase @@ -114,6 +114,7 @@ our $rd; our $workarea; our @git = qw(git); +our @dgit = qw(dgit); sub in_workarea ($) { my ($sub) = @_; @@ -1842,6 +1843,7 @@ getoptions_main 'noop-ok', => \$opt_noop_ok, 'f=s' => \@snag_force_opts, 'anchor=s' => \@opt_anchors, + '--dgit=s' => \($dgit[0]), 'force!', '-i:s' => sub { my ($opt,$val) = @_; diff --git a/git-debrebase.1.pod b/git-debrebase.1.pod index db22fa5d..eb85c6c4 100644 --- a/git-debrebase.1.pod +++ b/git-debrebase.1.pod @@ -407,6 +407,12 @@ it is a snag if is the anchor for the previous upstream version in git-debrebase new-upstream operations. +=item --dgit= + +Run , instead of dgit from PATH, +when invocation of dgit is necessary. +This is provided mostly for the benefit of the test suite. + =item -D Requests (more) debugging. May be repeated. diff --git a/tests/lib-gdr b/tests/lib-gdr index 95d2330e..7b43d4f2 100644 --- a/tests/lib-gdr +++ b/tests/lib-gdr @@ -7,7 +7,7 @@ t-git-debrebase () { local gdr=${DGIT_GITDEBREBASE_TEST-git-debrebase} : ' {{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{' - $gdr $GDR_TEST_OPTS $GDR_TEST_DEBUG $t_gdr_xopts "$@" + $gdr --dgit=$DGIT_TEST $GDR_TEST_OPTS $GDR_TEST_DEBUG $t_gdr_xopts "$@" : '}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}} ' } -- 2.30.2