* + .gitconfig with configuration for better diffing, needs a

git config --local include.path ../.gitconfig
    to be activated
This commit is contained in:
florian 2021-09-18 14:25:40 +02:00
parent 962c5bd727
commit d292958665

11
.gitconfig Normal file
View File

@ -0,0 +1,11 @@
# git config entry to make more nice looking diffs
# run
# git config --local include.path ../.gitconfig
# to include this file in your local git config
# not sure if we could do a [diff "fpc" "pascal"] or something like this
[diff "fpc"]
xfuncname = "^[ \\t]*(((class[ \\t]+)?(procedure|function)|constructor|destructor|[ \\t].*[ \\t]*=[ \\t]*(class|interface|object|record)|initialization|finalization)[ \\t]*.*)$"
[diff "pascal"]
xfuncname = "^[ \\t]*(((class[ \\t]+)?(procedure|function)|constructor|destructor|[ \\t].*[ \\t]*=[ \\t]*(class|interface|object|record)|initialization|finalization)[ \\t]*.*)$"