Skip to content

Commit

Permalink
Fix git diff completions
Browse files Browse the repository at this point in the history
Fixes #961
  • Loading branch information
schrieveslaach committed Sep 26, 2024
1 parent 5ffdfca commit 4005129
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom-completions/git/git-completions.nu
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ 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)
| append (nu-complete git built-in-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)
Expand Down Expand Up @@ -682,7 +682,7 @@ export extern "git clone" [
--upload-pack(-u): string # use <upload-pack> as the path in the other end when using ssh
--template: string # use <template-dir> as the templates directory
--config(-c): string # set a <key>=<value> config variable
--depth: int # shallow clone <depth> commits
--depth: int # shallow clone <depth> commits
--shallow-since: string # shallow clone commits newer than =<date>
--shallow-exclude: string # do not clone commits reachable from <revision> (branch or tag)
--single-branch # clone commit history from a single branch
Expand Down

0 comments on commit 4005129

Please sign in to comment.