Skip to content

Potentially deprecate config file path overrides through RepositoryOptions parameters #1188

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

Closed
nulltoken opened this issue Sep 9, 2015 · 6 comments
Milestone

Comments

@nulltoken
Copy link
Member

Following the merge of #1123, let's discuss about whether it makes sense or not to keep the config filepaths overrides per repository instances.

Would any of your tools actually still need those per repository instance specialized config file paths now that an appdomain level setting exist?

/cc @shiftkey @rcorre @Therzok @ethomson @carlosmn @spraints @KindDragon

@nulltoken nulltoken added this to the v0.22 milestone Sep 9, 2015
@shiftkey
Copy link
Contributor

Would any of your tools actually still need those per repository instance specialized config file paths now that an appdomain level setting exist?

@spraints
Copy link
Contributor

Would any of your tools actually still need those per repository instance specialized config file paths now that an appdomain level setting exist?

I don't think so, but can you give me an example of what APIs or types of calls would go away if this went away?

@rcorre
Copy link
Contributor

rcorre commented Sep 11, 2015

Things like:

var options = new RepositoryOptions { GlobalConfigurationLocation = configPath };

var path = SandboxStandardTestRepoGitDir();
using (var repo = new Repository(path, options)) { ... }

as seen in some LibGit2# tests would go away (not RepositoryOptions as a whole, just the config redirection part).

As far as I'm aware, we don't rely on this at all.

@nulltoken
Copy link
Member Author

/cc @ammeep @shana

@spraints
Copy link
Contributor

😎 IIRC git-tfs uses vanilla config everywhere.

@carlosmn
Copy link
Member

carlosmn commented Mar 7, 2016

We do need this for the tests in order to create isolated repos, but I'm working on making the test suite set this up globally at the start of a fixture instead of only isolating some repos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants