From: Christian Couder <christian.couder@gmail.com>
To: ToddAndMargo <ToddAndMargo@zoho.com>
Cc: git <git@vger.kernel.org>
Subject: Re: I just want the revision
Date: Mon, 11 Oct 2021 11:45:43 +0200 [thread overview]
Message-ID: <CAP8UFD1_2g84epP+qjP2QW2g2bzdWcepPE60rY2vdKpTZFdEDg@mail.gmail.com> (raw)
In-Reply-To: <e257c62e-edff-f559-95e7-374b623a3f61@zoho.com>
Hi,
On Mon, Oct 11, 2021 at 4:57 AM ToddAndMargo <ToddAndMargo@zoho.com> 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.
next prev parent reply other threads:[~2021-10-11 9:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-11 2:37 I just want the revision ToddAndMargo
2021-10-11 9:45 ` Christian Couder [this message]
2021-10-11 10:09 ` ToddAndMargo
2021-10-11 10:24 ` ToddAndMargo
2021-10-11 13:13 ` Christian Couder
2021-10-11 21:51 ` ToddAndMargo
2021-10-11 22:43 ` Christian Couder
2021-10-11 16:02 ` Daniel Knittl-Frank
2021-10-11 16:18 ` Jeff King
2021-10-12 1:03 ` ToddAndMargo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAP8UFD1_2g84epP+qjP2QW2g2bzdWcepPE60rY2vdKpTZFdEDg@mail.gmail.com \
--to=christian.couder@gmail.com \
--cc=ToddAndMargo@zoho.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).