Skip to content

work from any dir within a git repository #4

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

Merged
merged 2 commits into from
Apr 12, 2018
Merged

work from any dir within a git repository #4

merged 2 commits into from
Apr 12, 2018

Conversation

mvdan
Copy link
Contributor

@mvdan mvdan commented Apr 11, 2018

Worked on this upsteam a few weeks ago: src-d/go-git#784

mvdan added 2 commits April 11, 2018 19:06
By using go-git's new DetectDotGit, which finds the first parent
directory with an existing .git directory or file.

Also move PlainOpen outside of the helper functions, to implement this
only once.
@mvdan mvdan requested a review from kenshaw April 11, 2018 18:11
@mvdan
Copy link
Contributor Author

mvdan commented Apr 11, 2018

Also, if you're wondering why the API is so awkward, it's because of backwards compatibility.

@kenshaw kenshaw merged commit 8b9e08c into kenshaw:master Apr 12, 2018
@mvdan mvdan deleted the git-detect-dir branch October 12, 2018 14:09
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