On Jul 27 2025, Thomas Schwinge wrote:

> Hi Bob!
>
> On 2025-07-27T08:55:04+0200, Andreas Schwab <sch...@linux-m68k.org> wrote:
>> On Jul 26 2025, Robert Dubner wrote:
>>> Follow-up:  After poking around on the internet for inspiration, I used
>>>
>>> git log 
>>> basepoints/gcc-15~1..HEAD --reverse --grep="^gcc/cobol" --grep="^libgcobol" 
>>>  
>>> --grep="cobol.dg"
>
> You need to start at the GCC 16 base point (basepoints/gcc-16), not the
> GCC 15 one (basepoints/gcc-15).
>
>> git rev-list --reverse --grep=^cobol --grep=^libgcobol 
>> origin/releases/gcc-15..origin/master -- gcc/cobol libgcobol "*/cobol.dg/*"
>
> (Without the '^' anchors, I suppose, and/or without specifying both of
> the '--grep's and the paths?)

No, I mean it exactly as I wrote it.

> Something like that, or I'd just have done:
>
>     $ rev_start=origin/releases/gcc-15 # Will be different next time.
>     $ git log --reverse --oneline "$rev_start"..origin/trunk -- gcc/cobol/ 
> libgcobol/ gcc/testsuite/cobol.dg/ | grep -v 'Daily bump.' | less
>
> ... or:
>
>     $ git log --reverse --stat -p "$rev_start"..origin/trunk -- gcc/cobol/ 
> libgcobol/ gcc/testsuite/cobol.dg/
>
> This gives a list of 50 commits

My command gives 44 commits that apply without any conflicts.  I didn't
try to compile it, though.

git cherry-pick $(git rev-list --reverse --grep=^libgcobol --grep=^cobol 
origin/releases/gcc-15..origin/master -- gcc/cobol libgcobol "*/cobol.dg/*")

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

Reply via email to