Skip to content

Strip ANSI from the main branch name#1139

Merged
fdncred merged 1 commit into
nushell:mainfrom
samoylovfp:patch-3
Jun 30, 2025
Merged

Strip ANSI from the main branch name#1139
fdncred merged 1 commit into
nushell:mainfrom
samoylovfp:patch-3

Conversation

@samoylovfp

Copy link
Copy Markdown
Contributor

find highlights the returned value,
which breaks the gcm macro,
it returns

error: pathspec '?[37m?[0m?[41;37mmain?[0m?[37m?[0m' did not match any file(s) known to git

I opted in to using ansi strip instead of --no-highlight, because I think it covers wider range of nu shell versions

`find` highlights the returned value,
which breaks the `gcm` macro,
it returns 
```
error: pathspec '?[37m?[0m?[41;37mmain?[0m?[37m?[0m' did not match any file(s) known to git
```

I opted in to using `ansi strip` instead of `--no-highlight`,
because I think it covers wider range of nu shell versions
@fdncred
fdncred merged commit 6faa666 into nushell:main Jun 30, 2025
1 check passed
@fdncred

fdncred commented Jun 30, 2025

Copy link
Copy Markdown
Contributor

Thanks

@samoylovfp
samoylovfp deleted the patch-3 branch June 30, 2025 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants