* [PATCH] git-undescr.sh: Support full output of git-descr.sh.
@ 2022-01-27 18:29 Martin Liška
2022-01-27 18:33 ` Jakub Jelinek
0 siblings, 1 reply; 2+ messages in thread
From: Martin Liška @ 2022-01-27 18:29 UTC (permalink / raw)
To: gcc-patches; +Cc: Jakub Jelinek
I would like to support:
$ git gcc-undescr `git gcc-descr`
9cbfbe2497c0117b0598e35658248bc723c0b931
Which is done in the patch.
Ready to be installed?
Thanks,
Martin
contrib/ChangeLog:
* git-undescr.sh: Support full output of git-descr.sh.
---
contrib/git-undescr.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/git-undescr.sh b/contrib/git-undescr.sh
index 7d2efe1a8e7..9d882a6814e 100755
--- a/contrib/git-undescr.sh
+++ b/contrib/git-undescr.sh
@@ -3,8 +3,8 @@
# Script to undescribe a GCC revision
o=$(git config --get gcc-config.upstream);
-r=$(echo $1 | sed -n 's,^r\([0-9]\+\)-[0-9]\+$,\1,p');
-n=$(echo $1 | sed -n 's,^r[0-9]\+-\([0-9]\+\)$,\1,p');
+r=$(echo $1 | sed -n 's,^r\([0-9]\+\)-[0-9]\+\(-g[0-9a-f]\+\)\?$,\1,p');
+n=$(echo $1 | sed -n 's,^r[0-9]\+-\([0-9]\+\)\(-g[0-9a-f]\+\)\?$,\1,p');
test -z $r && echo Invalid id $1 && exit 1;
h=$(git rev-parse --verify --quiet ${o:-origin}/releases/gcc-$r);
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] git-undescr.sh: Support full output of git-descr.sh.
2022-01-27 18:29 [PATCH] git-undescr.sh: Support full output of git-descr.sh Martin Liška
@ 2022-01-27 18:33 ` Jakub Jelinek
0 siblings, 0 replies; 2+ messages in thread
From: Jakub Jelinek @ 2022-01-27 18:33 UTC (permalink / raw)
To: Martin Liška; +Cc: gcc-patches
On Thu, Jan 27, 2022 at 07:29:20PM +0100, Martin Liška wrote:
> I would like to support:
>
> $ git gcc-undescr `git gcc-descr`
> 9cbfbe2497c0117b0598e35658248bc723c0b931
>
> Which is done in the patch.
>
> Ready to be installed?
> Thanks,
> Martin
>
> contrib/ChangeLog:
>
> * git-undescr.sh: Support full output of git-descr.sh.
Ok.
Jakub
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-27 18:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-27 18:29 [PATCH] git-undescr.sh: Support full output of git-descr.sh Martin Liška
2022-01-27 18:33 ` Jakub Jelinek
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).