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

Seems wrong color in scmpuff_status #32

Closed
bestswifter opened this issue Jan 2, 2018 · 3 comments
Closed

Seems wrong color in scmpuff_status #32

bestswifter opened this issue Jan 2, 2018 · 3 comments

Comments

@bestswifter
Copy link

bestswifter commented Jan 2, 2018

In normal git status, files which haven't been staged are shown in red color while staged files are shown in green color.

However, in the output of scmpuff_status, files which haven't been staged are shown in green and the staged files are shown in yellow which I think is not intuitional.

Is this a bug or feature?

@mroth
Copy link
Owner

mroth commented Jan 3, 2018 via email

@mroth mroth closed this as completed Jan 10, 2018
@killerkiara
Copy link

Is there in the meantime any update on this feature @mroth ? Thank you :)

@mroth
Copy link
Owner

mroth commented Jul 5, 2018

@killerkiara if you want to take a stab at a PR towards an architecture for this I can review it.

Basically the colors are defined here:
https://github.com/mroth/scmpuff/blob/master/commands/status/constants.go

I think what I'd probably do is have the program check for the presence of environment variables at initialization, e.g. $SCMPUFF_COLOR_RST etc. I think there's a valid open question as to how this would interact with #28 for cross platform support however, and so they should be reconciled.

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

No branches or pull requests

3 participants