Prechádzať zdrojové kódy

* + .gitconfig with configuration for better diffing, needs a
git config --local include.path ../.gitconfig
to be activated

florian 3 rokov pred
rodič
commit
d292958665
1 zmenil súbory, kde vykonal 11 pridanie a 0 odobranie
  1. 11 0
      .gitconfig

+ 11 - 0
.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]*.*)$"