On 10/10/21 19:37, ToddAndMargo 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 I could get something that contained
virtio-win: rebase on 0.164
I could dig out the revision
Many thanks,
-T
This simulates what I came up with in my actual code:
$ curl --silent
'https://gitlab.freedesktop.org/spice/win32/spice-nsis/-/commits/master'
| raku -ne 'my Str $x=slurp(); $x~~s/.*? "rebase on " //; $x~~s/
("</a>") .* //; print "$x\n";'
0.164
Thank you all for the tips!