From d2929586652740f02401d6c9f603cc1b2faa56f9 Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 18 Sep 2021 14:25:40 +0200 Subject: [PATCH] * + .gitconfig with configuration for better diffing, needs a git config --local include.path ../.gitconfig to be activated --- .gitconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .gitconfig diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000000..39a3f558d0 --- /dev/null +++ b/.gitconfig @@ -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]*.*)$"