sourcegraph / go-vcs

manipulate and inspect VCS repositories in Go
https://sourcegraph.com/sourcegraph/go-vcs
Other
79 stars 20 forks source link

Windows support #76

Closed alexsaveliev closed 9 years ago

alexsaveliev commented 9 years ago

TODO list:

dmitshur commented 9 years ago

replaced "git rev-parse SPEC^{commit}" with short-hand "git rev-parse SPEC^0" because {} has a special meaning in Windows

I wanted to verify that doing this wouldn't cause a regression for #37, and it appears to be okay.

alexsaveliev commented 9 years ago

I wanted to verify that doing this wouldn't cause a regression for #37 https://github.com/sourcegraph/go-vcs/issues/37, but it appears to be okay.

https://git-scm.com/docs/git-rev-parse states

...As a special rule, ^0 means the commit itself and is used when

is the object name of a tag object that refers to a commit object.... so ^0 is identical to ^{commit}.
dmitshur commented 9 years ago

https://git-scm.com/docs/git-rev-parse states

...As a special rule, ^0 means the commit itself and is used when

is the object name of a tag object that refers to a commit object.... so ^0 is identical to ^{commit}.

Great, it's good that the docs confirm it too.

beyang commented 9 years ago

Other than comments, LGTM. Why is Travis failing?

dmitshur commented 9 years ago

Travis is failing on Go 1.2 and 1.3, but passing on 1.4 and tip. It's because the golang.org/x/crypto/ssh package uses crypto.Signer which is available on Go 1.4 and later.

I think we should drop Go 1.2 and 1.3, and use 1.4, 1.5, and tip. 1.3 is more than 1 major version behind current release.

beyang commented 9 years ago

yeah, let's go ahead and drop everything below 1.4. @alexsaveliev can you update the travis.yml?

alexsaveliev commented 9 years ago

Updated travis.yml to include only Go 1.4+