[PATCH] git-backport: support renamed .cc files in commit message.

Martin Liška mliska@suse.cz
Wed Jan 19 08:07:45 GMT 2022


On 1/18/22 20:10, Harald Anlauf via Fortran wrote:
> Am 17.01.22 um 22:26 schrieb Martin Liška:
>> On 1/12/22 16:54, Martin Liška wrote:
>>>
>>> There's a patch that enhances git-backport so that it updates commit
>>> messages for files which name ends now with .cc and is still .c on a branch.
>>
>> The patch has been installed as I've made the renaming now.
>>
>> Cheers,
>> Martin
>>
> 
> I just made a "git rebase" and had to manually fix the filenames
> in the commit message.  Otherwise gcc-verify would complain.

Sure and I'm adding a new script that basically follows all the 'did you mean'
in gcc-verify and fixes that:

ERR: unchanged file mentioned in a ChangeLog (did you mean "contrib/gcc-git-customization.sh"?): "contrib/gcc2-git-customization.sh"
...

> 
> Would it make sense to have something that is clever enough for
> rebase to do similar things as git-backport?

Yes, a new git alias 'gcc-fix-changelog' is going to be available with the patch.

Martin

> 
> Thanks,
> Harald
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Come-up-with-git-fix-changelog.py-script.patch
Type: text/x-patch
Size: 7804 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20220119/6dabde54/attachment.bin>


More information about the Gcc mailing list