← 返回首页
FetchInfo.re_fetch_result has no reason to be public · gitpython-developers/GitPython@0ef12ae · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

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

Provide feedback

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

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Commit 0ef12ae

Browse files
Daniel Watkins
committed
FetchInfo.re_fetch_result has no reason to be public
And when using the API interactively, having it show up as public is confusing.
1 parent cf8dc25 commit 0ef12ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎git/remote.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class FetchInfo(object):
208208
NEW_TAG, NEW_HEAD, HEAD_UPTODATE, TAG_UPDATE, REJECTED, FORCED_UPDATE, \
209209
FAST_FORWARD, ERROR = [1 << x for x in range(8)]
210210

211-
re_fetch_result = re.compile(r'^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([^\s]+)( \(.*\)?$)?')
211+
_re_fetch_result = re.compile(r'^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([^\s]+)( \(.*\)?$)?')
212212

213213
_flag_map = {'!': ERROR,
214214
'+': FORCED_UPDATE,
@@ -263,7 +263,7 @@ def _from_line(cls, repo, line, fetch_line):
263263
264264
fetch line is the corresponding line from FETCH_HEAD, like
265265
acb0fa8b94ef421ad60c8507b634759a472cd56c not-for-merge branch '0.1.7RC' of /tmp/tmpya0vairemote_repo"""
266-
match = cls.re_fetch_result.match(line)
266+
match = cls._re_fetch_result.match(line)
267267
if match is None:
268268
raise ValueError("Failed to parse line: %r" % line)
269269

0 commit comments

Comments
 (0)

Footer

© 2026 GitHub, Inc.