Rmove usage of deprecated str contains --not (#880)

Related: https://github.com/nushell/nushell/issues/13163
This commit is contained in:
Ian Manske 2024-06-16 22:30:53 +00:00 committed by GitHub
parent 9b08b15981
commit 92f20ff282
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
})