From 0ef12ae4c158fa8ddb78a70dcf8f90966758db81 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Fri, 28 Jul 2017 14:08:56 -0400 Subject: [PATCH] FetchInfo.re_fetch_result has no reason to be public And when using the API interactively, having it show up as public is confusing. --- git/remote.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git/remote.py b/git/remote.py index fd76e592a..b058b3d4c 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 @@ def _from_line(cls, repo, line, fetch_line): 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)