Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix eg status (closes #3) #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix eg status (closes #3) #4

wants to merge 1 commit into from

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