-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
switch from LibGit2Sharp to Git #256
Conversation
@bording it's a little hacky but it seems to work!
|
d2723c1
to
f784054
Compare
3d36602
to
bfb32eb
Compare
e34a869
to
57ca758
Compare
57ca758
to
15b5b1c
Compare
aea7a11
to
be5b231
Compare
@alexeyzimarev @bartelink @blairconrad @bording @damianh @enzian @g8rdev @leastprivilege @mauroservienti @Mpdreamz @Selmirrrrr @shaynevanasperen @slang25 @thefringeninja @yreynhout: as prolific MinVer users/contributors, do you see any pitfalls with this? It runs the following Git commands:
All of these commands have been available since some point during the Git 1.x range, so they will all work in the 2.x range. Unfortunately, I have to swallow exceptions when running 2 and 3 because I've found no way to determine whether they will succeed or fail before running them. For example:
However, I believe swallowing exceptions and returning the default version is fine in both cases. For all the versions of Git I tried, BTW - performance seems to be unaffected. I ran a local build against |
be5b231
to
334e352
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's probably fine, right?
Overall I think the concept is fine, and there are benefits in moving away from LibGit2Sharp. This does mean you're taking an external dependency that you don't control, though. Sure, it seems reasonable to assume that |
334e352
to
2d32701
Compare
2d32701
to
1c791bd
Compare
ca4deae
to
7a4e142
Compare
Yes, that gave me pause, but I think it's probably OK. If it is a problem, I expect it be shown during the alpha phase. I'll ensure an alpha is tested in all the cloud CI providers I can think of, and in Docker builds such as https://github.com/SQLStreamStore/SQLStreamStore, but I'm optimistic that all those environments will have |
I like the idea of Assuming git in the environment makes sense here, and the implementation looks sounds :) |
Wait, this won't work on my perforce repositories?? |
J/K, fine with this. The project had an hard dependency on git anyway. |
8414fce
to
7e7131a
Compare
d0eaa3d
to
68418e2
Compare
68418e2
to
2c48e7e
Compare
Released in 2.0.0-alpha.1. |
fixes #149
closes #269
Breaking changes (which are unlikely to break anyone):
.git
subdirectory of a working directory, or a bare repo.