Deduplicate code and use libgit2 for setting git index flags
tree3290b7389863af154599eea32e11a3f50f537e0d
-rw-r--r-- 429 .gitignore
-rw-r--r-- 560 .gitmodules
-rw-r--r-- 224 .mailmap
-rw-r--r-- 255 .tgitconfig
drwxr-xr-x - Languages
-rw-r--r-- 2173 build.txt
drwxr-xr-x - contrib
drwxr-xr-x - doc
drwxr-xr-x - ext
-rw-r--r-- 1742 release.txt
drwxr-xr-x - src
drwxr-xr-x - test