From 4f7d9a626a2229825cacd366e563af43a864362c Mon Sep 17 00:00:00 2001 From: Cattle_Horse Date: Sat, 10 May 2025 20:37:51 +0800 Subject: [PATCH] feat(git): Added complementary support for the git config subcommands (#1117) --- custom-completions/git/git-completions.nu | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/custom-completions/git/git-completions.nu b/custom-completions/git/git-completions.nu index 8f1099e..e41b28e 100644 --- a/custom-completions/git/git-completions.nu +++ b/custom-completions/git/git-completions.nu @@ -552,6 +552,34 @@ export extern "git branch" [ --track(-t) # when creating a branch, set upstream ] +# List all variables set in config file, along with their values. +export extern "git config list" [ +] + +# Emits the value of the specified key. +export extern "git config get" [ +] + +# Set value for one or more config options. +export extern "git config set" [ +] + +# Unset value for one or more config options. +export extern "git config unset" [ +] + +# Rename the given section to a new name. +export extern "git config rename-section" [ +] + +# Remove the given section from the configuration file. +export extern "git config remove-section" [ +] + +# Opens an editor to modify the specified config file +export extern "git config edit" [ +] + # List or change tracked repositories export extern "git remote" [ --verbose(-v) # Show URL for remotes