Skip to content

Commit

Permalink
Merge pull request #2179 from rsteube/git-checkout-no-flag
Browse files Browse the repository at this point in the history
git: checkout - added --no-* flags
  • Loading branch information
rsteube authored Jan 15, 2024
2 parents 09c3951 + cc9a69a commit 19c071b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions completers/git_completer/cmd/checkout.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ func init() {
checkoutCmd.Flags().Bool("ignore-skip-worktree-bits", false, "do not limit pathspecs to sparse entries only")
checkoutCmd.Flags().BoolS("l", "l", false, "create reflog for new branch")
checkoutCmd.Flags().BoolP("merge", "m", false, "perform a 3-way merge with the new branch")
checkoutCmd.Flags().Bool("no-guess", false, "do not second guess 'git checkout <no-such-branch>'")
checkoutCmd.Flags().Bool("no-overlay", false, "remove files not in <tree-ish>")
checkoutCmd.Flags().Bool("no-overwrite-ignore", false, "do not overwrite ignored files when switching branches")
checkoutCmd.Flags().Bool("no-progress", false, "do not show progress")
checkoutCmd.Flags().Bool("no-recurse-submodules", false, "do not update submodules")
checkoutCmd.Flags().Bool("no-track", false, "do not set up \"upstream\" configuration")
checkoutCmd.Flags().String("orphan", "", "new unparented branch")
checkoutCmd.Flags().BoolP("ours", "2", false, "checkout our version for unmerged files")
checkoutCmd.Flags().Bool("overlay", false, "use overlay mode (default)")
Expand Down

0 comments on commit 19c071b

Please sign in to comment.