Closed kubaPod closed 7 years ago
As the documentation for GitRange
says:
The common git command-line specification of ref1..ref2 is equivalent to
GitRange[repo,Except["ref1"],"ref2"]
.
Indeed, somehow I assumed GitLink does not have documentation. Embarrassing. Thanks.
If you're using GitLink from an 11.2 beta, you might not be finding documentation because of a bug in the beta. You can direct hit the documentation by doing, e.g., GitLink/ref/GitRange
, but typing GitRange
by itself doesn't work. This should be fixed for the final 11.2 release.
That problem with documentation search is described here:
The GitLink doc search did indeed work fine in 11.2 final (reindexing was triggered after a restart + frist search).
I think that explains my confusion, at least I will stick to this excuse.
Does GitRange, ToGitObject etc support ranges?
e.g. GitRange[repo, "hash1..hash2"] or GitRange[repo, "^hash1 hash2"]
fail. I end up with ridiculous solution:
Complement[ GitRange[repo, ToGitObject[repo, "hash2"]], GitRange[repo, ToGitObject[repo, "hash1"]] ]