Priority level of a config file. These priority levels correspond to the natural escalation logic (from higher to lower) when searching for config entries in git.git.
| 230 | |
| 231 | |
| 232 | class ConfigLevel(IntEnum): |
| 233 | """ |
| 234 | Priority level of a config file. |
| 235 | These priority levels correspond to the natural escalation logic |
| 236 | (from higher to lower) when searching for config entries in git.git. |
| 237 | """ |
| 238 | |
| 239 | PROGRAMDATA = _pygit2.GIT_CONFIG_LEVEL_PROGRAMDATA |
| 240 | 'System-wide on Windows, for compatibility with portable git' |
| 241 | |
| 242 | SYSTEM = _pygit2.GIT_CONFIG_LEVEL_SYSTEM |
| 243 | 'System-wide configuration file; /etc/gitconfig on Linux systems' |
| 244 | |
| 245 | XDG = _pygit2.GIT_CONFIG_LEVEL_XDG |
| 246 | 'XDG compatible configuration file; typically ~/.config/git/config' |
| 247 | |
| 248 | GLOBAL = _pygit2.GIT_CONFIG_LEVEL_GLOBAL |
| 249 | 'User-specific configuration file (also called Global configuration file); typically ~/.gitconfig' |
| 250 | |
| 251 | LOCAL = _pygit2.GIT_CONFIG_LEVEL_LOCAL |
| 252 | 'Repository specific configuration file; $WORK_DIR/.git/config on non-bare repos' |
| 253 | |
| 254 | WORKTREE = _pygit2.GIT_CONFIG_LEVEL_WORKTREE |
| 255 | 'Worktree specific configuration file; $GIT_DIR/config.worktree' |
| 256 | |
| 257 | APP = _pygit2.GIT_CONFIG_LEVEL_APP |
| 258 | 'Application specific configuration file; freely defined by applications' |
| 259 | |
| 260 | HIGHEST_LEVEL = _pygit2.GIT_CONFIG_HIGHEST_LEVEL |
| 261 | """Represents the highest level available config file (i.e. the most |
| 262 | specific config file available that actually is loaded)""" |
| 263 | |
| 264 | |
| 265 | class CredentialType(IntFlag): |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…