Skip to content

Michael k cleanup config - #399

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

technoweenie merged 6 commits into
masterfrom
michael-k-cleanupConfig

Conversation

@technoweenie

Copy link
Copy Markdown
Contributor

Merges latest master into #387.

Comment thread lfs/config.go

Copy link
Copy Markdown
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
Copy Markdown
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