| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,6 +38,9 @@ | |||
| 38 | 38 | # represents the configuration level of a configuration file | |
| 39 | 39 | CONFIG_LEVELS = ("system", "user", "global", "repository") | |
| 40 | 40 | ||
| 41 | + # Section pattern to detect conditional includes. | ||
| 42 | + # https://git-scm.com/docs/git-config#_conditional_includes | ||
| 43 | + CONDITIONAL_INCLUDE_REGEXP = re.compile(r"(?<=includeIf )\"(gitdir|gitdir/i|onbranch):(.+)\"") | ||
| 41 | 44 | ||
| 42 | 45 | class MetaParserBuilder(abc.ABCMeta): | |
| 43 | 46 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments