[Lazarus] git diff enhancement

Martin Frb lazarus at mfriebe.de
Tue Sep 14 17:55:44 CEST 2021


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.



More information about the lazarus mailing list