[Lazarus] git diff enhancement

Marco van de Voort fpc at pascalprogramming.org
Tue Sep 14 21:28:10 CEST 2021


Op 14-9-2021 om 17:55 schreef Martin Frb via lazarus:
> On 14/09/2021 17:49, Marco van de Voort via lazarus wrote:
>>
>> Op 14-9-2021 om 17:17 schreef Martin Frb via lazarus:
>>> In order for git to show pascal function headers.
>>>
>>> Add the following to your config
>>>
>>> [diff "fpc"]
>>>   xfuncname = "^(((class[ 
>>> \\t]+)?(procedure|function)|constructor|destructor|[ \\t].*[ \\t]*=[ 
>>
>> operator?
>>
>
> Yes, and you can also allow spaces at the begin of the line.
>
> I did not, to try and get the outer procedure always. Because 
> otherwise it finds nested procs, even if you are in the main body.
>

I meant "class operator" is also a method like declaration



More information about the lazarus mailing list