Re: [PATCH] contrib: Put gcc-descr and gcc-undescr to file.

2022-01-27 Thread Martin Liška
On 1/27/22 16:35, Jakub Jelinek wrote: For backwards compatibility, I'd prefer --full to be an alias to --long, and maybe the --short handling should short=yes; long=no and similarly --long/--full handling should long=yes; short=no so that --short --long is --long and --long --short is --short.

Re: [PATCH] contrib: Put gcc-descr and gcc-undescr to file.

2022-01-27 Thread Jonathan Wakely via Gcc-patches
On Thu, 27 Jan 2022, 15:06 Martin Liška, wrote: > Hello. > > I've finished Martin's work and put the 2 aliases into files. The > git-undescr.sh is basically > unchanged, while I added better option parsing for git-descr.sh script so > that it supports: > > $ git gcc-descr > r12-6895-g14f339894db6

Re: [PATCH] contrib: Put gcc-descr and gcc-undescr to file.

2022-01-27 Thread Jakub Jelinek via Gcc-patches
short --long is --long and --long --short is --short. Otherwise LGTM. > From feb3f83724cd0764f7ad3fbd1504c0d43266c88a Mon Sep 17 00:00:00 2001 > From: Martin Liska > Date: Thu, 27 Jan 2022 16:01:55 +0100 > Subject: [PATCH] contrib: Put gcc-descr and gcc-undescr to file. > > contrib/ChangeLog: &

[PATCH] contrib: Put gcc-descr and gcc-undescr to file.

2022-01-27 Thread Martin Liška
2001 From: Martin Liska Date: Thu, 27 Jan 2022 16:01:55 +0100 Subject: [PATCH] contrib: Put gcc-descr and gcc-undescr to file. contrib/ChangeLog: * git-descr.sh: New file. * git-undescr.sh: New file. Support optional arguments --long, --short and default to 14 characters of git hash. contrib