Re: I just want the revision

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Mon, Oct 11, 2021 at 4:57 AM ToddAndMargo <ToddAndMargo@xxxxxxxx> wrote:
>
> Hi All,
>
> I am trying to write a script to tell me the latest revision
> showing on
>
> https://gitlab.freedesktop.org/spice/win32/spice-nsis/-/tree/master
>
> which is 'virtio-win: rebase on 0.164", but I can only see this
> from a web browser, as the page is dynamic.
>
> I do have access to the git link on that page:
>
> https://gitlab.freedesktop.org/spice/win32/spice-nsis.git
>
> Does git (or some other) have a way of telling me
> JUST the revision without having to download the turkey?

If you just want the commit ID, you can use for example:

$ git ls-remote
https://gitlab.freedesktop.org/spice/win32/spice-nsis.git
refs/heads/master
f6ad44f35f5caeec51b7002169977272d85701a3        refs/heads/master

> If I could get something that contained
>         virtio-win: rebase on 0.164
> I could dig out the revision

You might also want to take a look at the GitLab API docs, for example:

https://docs.gitlab.com/ee/api/commits.html

Best,
Christian.



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux