1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-02 15:17:47 +00:00

tweak git completions (#166)

This commit is contained in:
Darren Schroeder 2022-02-27 16:16:53 -06:00 committed by GitHub
parent e69b2aae0c
commit cdacab3df9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,12 +9,12 @@ def "nu-complete git remotes" [] {
} }
# Top leve git command # Top leve git command
extern "git" [ # extern "git" [
] # ]
# Check out git branches ans files # Check out git branches and files
extern "git co" [ extern "git checkout" [
branch?: string@"nu-complete git branches" # name of the branch to checkout branch?: string@"nu-complete git branches" # name of the branch to checkout
-b: string # create and checkout a new branch -b: string # create and checkout a new branch
-B: string # create/reset and checkout a branch -B: string # create/reset and checkout a branch
@ -40,7 +40,7 @@ extern "git co" [
] ]
# Push changes # Push changes
extern "git pu" [ extern "git push" [
remote?: string@"nu-complete git remotes", # the name of the remote remote?: string@"nu-complete git remotes", # the name of the remote
refspec?: string@"nu-complete git branches"# the branch / refspec refspec?: string@"nu-complete git branches"# the branch / refspec
--verbose(-v) # be more verbose --verbose(-v) # be more verbose