Thursday, 15 March 2012

Using tilde or caret with 'git ls-remote' -



Using tilde or caret with 'git ls-remote' -

i'm using git ls-remote commit hashes of branches in repository of don't have clone.

git ls-remote ssh://gitosis@myserver/myrepo.git master

i'm interested beingness specify commit master~ , utilize git ls-remote figure out it's commit hash is.

does git back upwards this?

does git back upwards this?

no, explained in "show git logs range of commits on remote server?"

it works on ref patterns (head, tags, branches, ...), not revs

you need fetch first, in order check origin/master~.

intended use:

a custom, perhaps hackish, application. it's mechanism users issue requests scheme building , installing specific versions of software. supports build_request someproject somebranch. completeness, think should back upwards request somebranch~.

i suppose possible set kind of web service, listener able interpret user query , git log master~ on mutual server. listener wouldn't have git.

git

No comments:

Post a Comment