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

remove color.ui settings #43

Closed
wants to merge 1 commit into from

Conversation

andreabedini
Copy link

As explained in the git documentation the configuration variable color.ui is set to auto by default. There's no need to tell students to set this variable themselves.

As explained in the [git documentation](http://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#Colors-in-Git) the configuration variable `color.ui` is set to `auto` by default. There's no need to tell students to set this variable themselves.
@wking
Copy link
Contributor

wking commented Feb 12, 2015

On Thu, Feb 12, 2015 at 02:42:32PM -0800, Andrea Bedini wrote:

As explained in the git
documentation

the configuration variable color.ui is set to auto by default.

That's just the Pro Git book (which is pretty good, but versioned
independently from the Git code and generally less detailed than 1).
The Git docs say:

$ git config --help
...
color.ui
... Set it to always if you want all output not intended for
machine consumption to use color, to true or auto (this is
the default since Git 1.8.4) if you want such output to use
color when written to the terminal.

I'm not sure how far back we want to support Git clients. 1.8.4 was
cut on 2013-08-23, but feel like we've had problems keeping Windows
and OS X users up to date with their clients.

@andreabedini
Copy link
Author

OSX now ships with git version 1.9.3, I guess Windows users can install the latest version of git (since they have to install git anyway). Anyway, I reckon missing on ui colors is acceptable compromise for who is stuck with an old version of git. In the end, the less things we configure the better.

@wking
Copy link
Contributor

wking commented Feb 12, 2015

On Thu, Feb 12, 2015 at 03:21:18PM -0800, Andrea Bedini wrote:

OSX now ships with git version 1.9.3, ...

For folks who are running the current OS X ;). Just because new
releases of OSes and software are available, doesn't mean that our
students show up with them installed.

Anyway, I reckon missing on ui colors is acceptable compromise for
who is stuck with an old version of git. In the end, the less things
we configure the better.

I agree with the idea here, I'm just not sure how long our support
window should be, or how stale our students' systems are. Our current
official minimum Git is 1.7.0 1. I'm fine with bumping that version
and merging this PR if we're comfortable cutting off folks with older
Gits (who as you point out, should be able to upgrade). I'm also
comfortable leaving this as it stands for another year or two, to give
folks on old systems more time, since an extra line in the config
isn't too big a burden on everyone else.

@jiffyclub
Copy link
Contributor

I'd vote for leaving this as is for now. I can tell you from the trenches that we get plenty of people with ancient operating systems in our workshops.

Random thought: It could be an interesting extra challenge in discussion.md to have people experiment with turning ui.color on and off as practice using the config system.

@andreabedini
Copy link
Author

@jiffyclub there's little to none content about using the git configuration system in the lesson, I don't think we need to include practice on that. I'd like to reiterate the main point: the additional obscure configuration option is not worth the gain (the colour ui). People using old system can live without.

@jiffyclub
Copy link
Contributor

I disagree with your premise, it is absolutely worth turning on the color UI.

@iglpdc
Copy link
Contributor

iglpdc commented Feb 13, 2015

I'd also vote for leaving it for now. I think it's not that much intrusive, allows us to support outdated OSes, and gives the instructor the chance to introduce, even briefly, the git config system.

I'm closing it without merging for now. Thanks in any case, @andreabedini.

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.

4 participants