From 400512903835219642cfb8b6385bcd2f2d6d6fa6 Mon Sep 17 00:00:00 2001 From: Marc Schreiber Date: Thu, 26 Sep 2024 17:43:27 +0200 Subject: [PATCH] Fix git diff completions Fixes #961 --- custom-completions/git/git-completions.nu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom-completions/git/git-completions.nu b/custom-completions/git/git-completions.nu index 806c5159..fb6349bd 100644 --- a/custom-completions/git/git-completions.nu +++ b/custom-completions/git/git-completions.nu @@ -126,7 +126,7 @@ def "nu-complete git built-in-refs" [] { } def "nu-complete git refs" [] { - nu-complete git switchable branches + nu-complete git local branches | parse "{value}" | insert description Branch | append (nu-complete git tags | parse "{value}" | insert description Tag) @@ -134,7 +134,7 @@ def "nu-complete git refs" [] { } def "nu-complete git files-or-refs" [] { - nu-complete git switchable branches + nu-complete git local branches | parse "{value}" | insert description Branch | append (nu-complete git files | where description == "Modified" | select value) @@ -682,7 +682,7 @@ export extern "git clone" [ --upload-pack(-u): string # use as the path in the other end when using ssh --template: string # use as the templates directory --config(-c): string # set a = config variable - --depth: int # shallow clone commits + --depth: int # shallow clone commits --shallow-since: string # shallow clone commits newer than = --shallow-exclude: string # do not clone commits reachable from (branch or tag) --single-branch # clone commit history from a single branch