mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-07-31 14:17:45 +00:00
Rmove usage of deprecated str contains --not
(#880)
Related: https://github.com/nushell/nushell/issues/13163
This commit is contained in:
parent
9b08b15981
commit
92f20ff282
1 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,8 @@ export def repo-structured [] {
|
|||
$status
|
||||
| where ($it | str starts-with '# branch.head')
|
||||
| first
|
||||
| str contains --not '(detached)'
|
||||
| str contains '(detached)'
|
||||
| not $in
|
||||
} else {
|
||||
false
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue