Skip to content

Conversation

@chocolateboy
Copy link

The output of git status changed in 1.8.5: the leading core.commentChar prefix ("#" by default) was removed.

Fortunately, there's a config option to restore it (status.displayCommentPrefix=true) and git provides a way to set a config option while executing a command:

git -c name=value command --options ...

So that mostly restores the expected output.

However, there have been other changes in the output since the status parser was last updated. There's one other fix here — "no changes added" is now "nothing added" — but others may be needed now and more will likely be needed in future.

The underlying issue is that this info is being parsed out of human-readable output rather than a machine-readable format like that produced by git status --porcelain.

the output of `git status` changed in 1.8.5 (2556b996): the
leading core.commentChar prefix ("#" by default) was removed.

Fortunately, there's a config option to restore it
(status.displayCommentPrefix=true) and git provides
a way to set a config option while executing
a git command:

    git -c name=value command --options ...

So that mostly restores the expected output.

However, there have been other changes in the output since
the status parser was last updated. There's one other
fix here — "no changes added" is now "nothing added" —
but others may be needed now and more will likely be needed
in future.

The underlying issue is that this data is being parsed
out of human-readable output rather than a machine-readable
format like that produced by git status --porcelain.
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.

1 participant