1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-03 07:37:47 +00:00

Provide completion for git subcommands (#1044)

This is to provide completion for when user types `git [Tab]`.
There is already completion for `git help [Tab]` but I don't know why
author don't add it to `git` alone.

Fixes #1043
This commit is contained in:
Nguyễn Hồng Quân 2025-02-14 09:54:25 +07:00 committed by GitHub
parent a6c41303bb
commit 07050f877f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -798,3 +798,7 @@ export extern "git grep" [
--quiet(-q) # Do not output matched lines; instead, exit with status 0 when there is a match and with non-zero status when there isnt.
...pathspecs: string # Target pathspecs to limit the scope of the search.
]
export extern "git" [
command?: string@"nu-complete git subcommands" # subcommand to show help for
]