mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
fix: nu-complete for git ref and git files-and-ref uses nu-complete git switch now (#906)
Git `nu-complete` defs where outdated, using a removed function `nu-complete git switachable branches`, now using `nu-complete git switch` Already tested (except for tags)
This commit is contained in:
parent
5a73ddfa18
commit
8d8a865b38
1 changed files with 6 additions and 11 deletions
|
@ -126,20 +126,15 @@ def "nu-complete git built-in-refs" [] {
|
||||||
}
|
}
|
||||||
|
|
||||||
def "nu-complete git refs" [] {
|
def "nu-complete git refs" [] {
|
||||||
nu-complete git switchable branches
|
nu-complete git switch
|
||||||
| parse "{value}"
|
| update description Branch
|
||||||
| insert description Branch
|
| append (nu-complete git tags | update description Tag)
|
||||||
| append (nu-complete git tags | parse "{value}" | insert description Tag)
|
| append (nu-complete git built-in-refs | wrap value | insert description Ref)
|
||||||
| append (nu-complete git built-in-refs)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def "nu-complete git files-or-refs" [] {
|
def "nu-complete git files-or-refs" [] {
|
||||||
nu-complete git switchable branches
|
nu-complete git refs
|
||||||
| parse "{value}"
|
| prepend (nu-complete git files | where description == "Modified")
|
||||||
| insert description Branch
|
|
||||||
| append (nu-complete git files | where description == "Modified" | select value)
|
|
||||||
| append (nu-complete git tags | parse "{value}" | insert description Tag)
|
|
||||||
| append (nu-complete git built-in-refs)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def "nu-complete git subcommands" [] {
|
def "nu-complete git subcommands" [] {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue