You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This occurs fairly frequently, I use direnv and this means I have .envrc files in my directories. However, running gs then gives me the message:
2025/02/13 15:43:23
Failed to decode git status change code for chunk: [ A .envrc]
Please file a bug including this error message as well as the output of:
git status --porcelain
You can file the bug at: https://github.com/mroth/scmpuff/issues/
Output of git status --porcelain:
A .envrc
A devenv.lock
A flake.lock
A flake.nix
?? .devenv.flake.nix
?? .devenv/
?? .direnv/
?? devenv.nix
?? devenv.yaml
Interesting, the issue here is not the filename but rather the [ A] git status change code, which used to not exist but was seemingly added to git at some point. (In your porcelain example, it's crashing on the first file it encounters with that status).
From the git status documentation when scmpuff was written:
X Y Meaning
-------------------------------------------------
[MD] not updated
X Y Meaning
-------------------------------------------------
[AMD] not updated
It should be relatively straightforward to update the parser to handle this case (though there are a bunch more new cases I see in that documentation too, so longer term #33 is probably the direction I'd like to update this project with), but I'm also curious how you get a git directory into the status where that code shows up, since I haven't encountered it before.
This occurs fairly frequently, I use direnv and this means I have
.envrc
files in my directories. However, runninggs
then gives me the message:Output of
git status --porcelain
:Contents of
.envrc
are"use flake"
:The text was updated successfully, but these errors were encountered: