Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc16f584

Browse files
committed
Add Regex to match content of "includeIf" section
1 parent8f9840b commitc16f584

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎git/config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
# represents the configuration level of a configuration file
3939
CONFIG_LEVELS= ("system","user","global","repository")
4040

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):(.+)\"")
4144

4245
classMetaParserBuilder(abc.ABCMeta):
4346

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp