Skip to content

Commit 0ef12ae

Browse files
author
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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git/remote.py

+2-2
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)