You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Completion/Unix/Command/_git
+52-4Lines changed: 52 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -362,7 +362,7 @@ _git-branch () {
362
362
"($l $m $d -f --force)"{-f,--force}'[force the creation of a new branch]' \
363
363
"($l $m $d --track)-t[setup configuration so that pull merges from the start point]" \
364
364
"($l $m $d -t)--track=-[setup configuration so that pull merges from the start point]::upstream tracking:(direct inherit)" \
365
-
"($l $m $d)--no-track[override the branch.autosetupmerge configuration variable]" \
365
+
"($l $m $d)--no-track[override the branch.autoSetupMerge configuration variable]" \
366
366
"($l $m $d -u --set-upstream --set-upstream-to --unset-upstream)"{-u+,--set-upstream-to=}'[set up configuration so that pull merges]:remote branch:__git_remote_branch_names' \
"($l $m $d)*--contains=[only list branches that contain the specified commit]: :__git_committishs" \
@@ -500,7 +500,7 @@ _git-checkout () {
500
500
'(--orphan -2 --ours -3 --theirs --conflict -p --patch -U --unified --inter-hunk-context -d --detach)-l[create reflog for new branch]' \
501
501
'(--track --no-track --orphan -p --patch -U --unified --inter-hunk-context -d --detach)-t[set upstream info for new branch]' \
502
502
'(-t --no-track --orphan -p --patch -U --unified --inter-hunk-context -d --detach)--track=-[set upstream info for new branch]::configuration:(direct inherit)' \
503
-
'(-p --patch -U --unified --inter-hunk-context)--no-track[override the branch.autosetupmerge configuration variable]' \
503
+
'(-p --patch -U --unified --inter-hunk-context)--no-track[override the branch.autoSetupMerge configuration variable]' \
504
504
$new_branch_reflog_opt \
505
505
'(-b -B -t --track -p --patch -U --unified --inter-hunk-context --orphan -d --detach)'{-d,--detach}'[detach the HEAD at named commit]' \
506
506
'(-b -B -t --track -p --patch -U --unified --inter-hunk-context -d --detach)--orphan=[create a new orphan branch based at given commit]: :__git_branch_names' \
apply.whitespace:'default value for the --whitespace option::->apply.whitespace:error'
2736
-
branch.autosetupmerge:'set up new branches for git pull::->bool:true'
2737
-
branch.autosetuprebase:'rebase new branches of merge for autosetupmerge::->branch.autosetuprebase:never'
2740
+
branch.autoSetupMerge:'tells git branch, git switch and git checkout to set up new branches so that git-pull(1) will appropriately merge from the starting point branch::->branch.autoSetupMerge:true'
2741
+
branch.autosetuprebase:'rebase new branches of merge for autoSetupMerge::->branch.autosetuprebase:never'
2738
2742
'branch.*.remote:what remote git fetch and git push should fetch form/push to::__git_remotes'
2739
2743
'branch.*.merge:default refspec to be marked for merging::__git_remote_references'
2740
2744
'branch.*.mergeoptions:default options for merging::->branch.mergeoptions'
commit.template:'template file for commit messages:template:_files'
2802
2806
'diff.*.binary:make the diff driver treat files as binary::->bool:false'
2803
2807
'diff.*.cachetextconv:make the diff driver cache the text conversion outputs::->bool:false'
2808
+
'diff.*.trustExitCode:expect diff.external command to return exit code 0 if it considers the input files to be equal or 1 if it considers them to be different::->bool:false'
diff.orderfile:'file to read patch order glob patterns from:order file:_files'
2821
2826
diff.renameLimit:'number of files to consider when detecting copy/renames:limit (number of files):->int'
2822
2827
diff.renames:'try to detect renames::->diff.renames:true'
2828
+
diff.trustExitCode:'expect diff.external command to return exit code 0 if it considers the input files to be equal or 1 if it considers them to be different::->bool:false'
reset.quiet:'pass --quiet by default::->bool:false'
3118
+
safe.bareRepository:'specifies which bare repositories Git will work with::->safe.bareRepository:all'
3119
+
safe.directory:'specify Git-tracked directories that are considered safe even if they are owned by someone other than the current user::_path_files -/'
'submodule.*.url:URL to update from::__git_any_repositories'
3178
3194
'submodule.*.update:update strategy to use::->submodule.update:none'
3179
3195
'submodule.*.ignore:ignore modifications to submodules with git status and git diff-*::->submodule.ignore'
3196
+
'submodule.*.active:the submodule is of interest to git commands::->bool:true'
3180
3197
submodule.recurse:'recurse into submodules by default (for most git commands)::->bool:false'
3198
+
submodule.fetchJobs:'how many submodules are fetched/cloned at the same time::->int:1'
3199
+
submodule.alternateLocation:'how the submodules obtain alternates when submodules are cloned::->submodule.alternateLocation:no'
3200
+
submodule.alternateErrorStrategy:'how to treat errors with the alternates for a submodule as computed via submodule.alternateLocation::->submodule.alternateErrorStrategy:die'
true:'automatic setup is done when the starting point is a remote-tracking branch' \
3595
+
always:'automatic setup is done when the starting point is either a local branch or remote-tracking branch' \
3596
+
inherit:'if the starting point has a tracking configuration, it is copied to the new branch' \
3597
+
simple:'automatic setup is done only when the starting point is a remote-tracking branch and the new branch has the same name as the remote branch.' && ret=0
0 commit comments