From: Jacob Keller Date: Sat, 25 Apr 2020 02:20:40 GMT Subject: [PATCH 06/11] completion: rename --track option of __git_complete_refs Message-ID: <20200425022045.1089291-8-jacob.e.keller@intel.com> In-Reply-To: <20200425022045.1089291-1-jacob.e.keller@intel.com> From: Jacob Keller The __git_complete_refs uses the "--track" option to specify when to enable listing of unique remote branches which could be used by the DWIMery of git checkout and git switch. This is confusing, because both git checkout and git switch have a --track option. This makes looking at the completion code for these two functions confusing. Rename this parameter to --dwim. Because it is plausible for users to have developed their own completions which rely on __git_complete_ref, keep --track as a synonym for --dwim, but do not use it in our own completion code. This reduces the confusion when seeing --track in the _git_switch() and _git_checkout() completion functions. Signed-off-by: Jacob Keller --- contrib/completion/git-completion.bash | 28 ++++++++++++++------------ 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 08d3406cf3e4..02dc1203559c 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -749,7 +749,7 @@ __git_refs () # Usage: __git_complete_refs [