From ec3421fbc2bfadd39bcd8bfd47eba857f4ba6d43 Mon Sep 17 00:00:00 2001 From: Aaron Date: Sun, 3 Nov 2024 14:55:12 -0800 Subject: [PATCH] Indicate options take an argument Co-authored-by: WATANABE Yuki --- share/completion/git-restore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/completion/git-restore b/share/completion/git-restore index 9fbafaaf..d5a10bc1 100644 --- a/share/completion/git-restore +++ b/share/completion/git-restore @@ -10,7 +10,7 @@ function completion/git-restore { function completion/git::restore:arg { OPTIONS=( #># - "s --source=; restore the working tree files with the content from the given tree" + "s: --source:; restore the working tree files with the content from the given tree" "p --patch; interactively select hunks in the difference between the restore source and the restore location" "W --worktree; specify the restore location" "S --staged; specify the restore location" @@ -20,7 +20,7 @@ function completion/git::restore:arg { "--ours; use stage #2 (ours) when restoring files in the working tree from the index" "--theirs; use stage #3 (theirs) when restoring files in the working tree from the index" "m --merge; when restoring files on the working tree from the index, recreate the conflicted merge in the unmerged paths" - "--conflict=; the same as the --merge option, but changes the way the conflicting hunks are presented, overriding the merge.conflictStyle configuration variable" + "--conflict:; the same as the --merge option, but changes the way the conflicting hunks are presented, overriding the merge.conflictStyle configuration variable" "--ignore-unmerged; when restoring files on the working tree from the index, do not abort the operation if there are unmerted entries and neither --ours, --theirs, --merge, or --conflict is specified" "--ignore-skip-worktree-bits; in sparse checkout mode, the default is to only update entries matched by and sparse patterns in \$GIT_DIR/info/sparse-checkout." "--recurse-submodules; if names an active submodule and the restore location includes the working tree"