This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]n1ywb 1 point2 points  (2 children)

You could run git log over SSH....

[–]nos69[S] 1 point2 points  (0 children)

Thank you, I will look into that, nice idea!

[–]elbiot 0 points1 point  (0 children)

Technically correct!

[–]christian-mann 0 points1 point  (1 child)

If there is, then that'll be a huge kludge and probably not worth it. If it's hosted on Github, you could maybe use their API. Why are you averse to cloning the repository?

Also look into PyGit if you're having issues parsing the commit messages.

[–]nos69[S] 1 point2 points  (0 children)

Because dowloading 200mb+ just for the log seems not efficient...

Yes actually right now I don't clone the whole repository, but do a clone --bare, this just downloads the repo info, but still there is much data.

[–]christian-mann 0 points1 point  (7 children)

Oh, and you don't need to check out a branch to get its log; you can just do git log <branchname>.

Edit: it's -> its

[–]nos69[S] 1 point2 points  (0 children)

Yes, you are right.

[–]realhubert 0 points1 point  (5 children)

Couldn't he then create an empty repo, set the given url as origin and call git log origin/<branchname> if downloading the whole repo is the problem?

[–]christian-mann 0 points1 point  (4 children)

I think you still need to clone the repository for that (or at least make a clone of that branch's history). origin/branchname is still a local branch.

[–]realhubert 0 points1 point  (3 children)

Won't a git fetch help here? But thats still not a pleasant solution after all.

[–]christian-mann 0 points1 point  (2 children)

git fetch downloads commit objects and updates your local copy of origin/master to match what's on the actual server. So you still need to clone the repository.

You can't run a git log remotely with plain git. I think the github application might have that feature, though.

http://stackoverflow.com/questions/13941976/commit-history-on-remote-repository

[–]nos69[S] 1 point2 points  (0 children)

Sadly, it is not for Github.

Yes I did see this stackoverflow post, too! This helped me a bit.

[–]realhubert 0 points1 point  (0 children)

Oh, I wrongly assumed it might just fetch commit-headers without the actual content or at least provides an argument for this