From: Denton Liu Date: Tue, 27 Aug 2019 04:45:36 +0000 (-0400) Subject: completion: merge options for cherry-pick and revert X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/deaa65a7545f2970167e32db3ff5f91b392f0517?hp=--cc completion: merge options for cherry-pick and revert Since revert and cherry-pick share the same sequencer code, they should both accept the same command-line options. Derive the `__git_cherry_pick_inprogress_options` and `__git_revert_inprogress_options` variables from `__git_sequencer_inprogress_options` so that the options aren't unnecessarily duplicated twice. Signed-off-by: Denton Liu Signed-off-by: Junio C Hamano --- deaa65a7545f2970167e32db3ff5f91b392f0517 diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index e087c4bf00..a7d3f58627 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -1361,7 +1361,9 @@ _git_checkout () esac } -__git_cherry_pick_inprogress_options="--continue --quit --abort" +__git_sequencer_inprogress_options="--continue --quit --abort" + +__git_cherry_pick_inprogress_options=$__git_sequencer_inprogress_options _git_cherry_pick () { @@ -2512,7 +2514,7 @@ _git_restore () esac } -__git_revert_inprogress_options="--continue --quit --abort" +__git_revert_inprogress_options=$__git_sequencer_inprogress_options _git_revert () {