summaryrefslogtreecommitdiff
path: root/src/sysdir.h
Commit message (Collapse)AuthorAgeFilesLines
* sysdir: use the standard `init` patternethomson/paths_initEdward Thomson2016-08-041-5/+0
| | | | | | | | | | | | | | Don't try to determine when sysdirs are uninitialized. Instead, simply initialize them all at `git_libgit2_init` time and never try to reinitialize, except when consumers explicitly call `git_sysdir_set`. Looking at the buffer length is especially problematic, since there may no appropriate path for that value. (For example, the Windows-specific programdata directory has no value on non-Windows machines.) Previously we would continually trying to re-lookup these values, which could get racy if two different threads are each calling `git_sysdir_get` and trying to lookup / clear the value simultaneously.
* config: add a ProgramData levelcmn/programdata-configCarlos Martín Nieto2015-10-211-2/+12
| | | | | This is where portable git stores the global configuration which we can use to adhere to it even though git isn't quite installed on the system.
* Move system directory cache out of utilsEdward Thomson2014-02-241-0/+101