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

Commit0ef12ae

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 isconfusing.
1 parentcf8dc25 commit0ef12ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎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<<xforxinrange(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
ifmatchisNone:
268268
raiseValueError("Failed to parse line: %r"%line)
269269

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp