Skip to content

Michael k cleanup config#399

Merged
technoweenie merged 6 commits intomasterfrom
michael-k-cleanupConfig
Jun 16, 2015
Merged

Michael k cleanup config#399
technoweenie merged 6 commits intomasterfrom
michael-k-cleanupConfig

Conversation

@technoweenie
Copy link
Contributor

Merges latest master into #387.

michael-k and others added 6 commits June 14, 2015 00:50
Introduced in commit daebd31 and PR github/git-lfs#31, but never
used.
See “Hacking with Andrew and Brad: tip.golang.org”
https://youtu.be/1rZ-JorHJEY?t=7m57s
(Andrew Gerrand and Brad Fitzpatrick are part of the Go core team.)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is already caching the bool check, we can use os.Getenv() here, and not worry about caching it in the gitConfig map. Perhaps a micro optimization that doesn't really matter.

Also, should bool checks actually look at the value, instead of seeing if the string is non empty? Common accepted values could be 1, true, or on, while values like 0, false, and off could still be false.

@technoweenie
Copy link
Contributor Author

I'm going to merge this. The git config bool checks can be looked at in another PR if it's important enough.

technoweenie added a commit that referenced this pull request Jun 16, 2015
@technoweenie technoweenie merged commit 0fc2f0b into master Jun 16, 2015
@technoweenie technoweenie deleted the michael-k-cleanupConfig branch June 16, 2015 22:27
michael-k added a commit to michael-k/git-lfs that referenced this pull request Jun 16, 2015
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.

2 participants