summaryrefslogtreecommitdiff
path: root/git/remote.py
diff options
context:
space:
mode:
authorDaniel Watkins <daniel.watkins@canonical.com>2017-07-28 14:08:56 -0400
committerDaniel Watkins <daniel.watkins@canonical.com>2017-07-28 14:08:56 -0400
commit0ef12ae4c158fa8ddb78a70dcf8f90966758db81 (patch)
tree3cd7712d8875156dea80affe239d5d1094bb83d3 /git/remote.py
parentcf8dc259fcc9c1397ea67cec3a6a4cb5816e3e68 (diff)
downloadgitpython-0ef12ae4c158fa8ddb78a70dcf8f90966758db81.tar.gz
FetchInfo.re_fetch_result has no reason to be public
And when using the API interactively, having it show up as public is confusing.
Diffstat (limited to 'git/remote.py')
-rw-r--r--git/remote.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/remote.py b/git/remote.py
index fd76e592..b058b3d4 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -208,7 +208,7 @@ class FetchInfo(object):
NEW_TAG, NEW_HEAD, HEAD_UPTODATE, TAG_UPDATE, REJECTED, FORCED_UPDATE, \
FAST_FORWARD, ERROR = [1 << x for x in range(8)]
- re_fetch_result = re.compile(r'^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([^\s]+)( \(.*\)?$)?')
+ _re_fetch_result = re.compile(r'^\s*(.) (\[?[\w\s\.$@]+\]?)\s+(.+) -> ([^\s]+)( \(.*\)?$)?')
_flag_map = {'!': ERROR,
'+': FORCED_UPDATE,
@@ -263,7 +263,7 @@ class FetchInfo(object):
fetch line is the corresponding line from FETCH_HEAD, like
acb0fa8b94ef421ad60c8507b634759a472cd56c not-for-merge branch '0.1.7RC' of /tmp/tmpya0vairemote_repo"""
- match = cls.re_fetch_result.match(line)
+ match = cls._re_fetch_result.match(line)
if match is None:
raise ValueError("Failed to parse line: %r" % line)