aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2012-01-31 09:24:14 +0100
committerGuido Günther <agx@sigxcpu.org>2012-01-31 11:57:32 +0100
commit158ac4cbb641b4bb618bf783438e2901c104a3d6 (patch)
treef5049f1a9ea98376015d810155bb34572e9bbe5e /gbp
parent41a5506a7aeb24729a9f4593b12f9bb8da4f3ffa (diff)
GitRepository: rename to __git_inout to _git_inout
for readability.
Diffstat (limited to 'gbp')
-rw-r--r--gbp/git/repository.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py
index 2e80ac50..e73d6dc1 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -106,7 +106,7 @@ class GitRepository(object):
output += popen.stdout.readlines()
return output, popen.returncode
- def __git_inout(self, command, args, input, extra_env=None, cwd=None,
+ def _git_inout(self, command, args, input, extra_env=None, cwd=None,
capture_stderr=False):
"""
Run a git command with input and return output
@@ -993,11 +993,11 @@ class GitRepository(object):
args = [ tree ]
for parent in parents:
args += [ '-p' , parent ]
- sha1, stderr, ret = self.__git_inout('commit-tree',
- args,
- msg,
- extra_env,
- capture_stderr=True)
+ sha1, stderr, ret = self._git_inout('commit-tree',
+ args,
+ msg,
+ extra_env,
+ capture_stderr=True)
if not ret:
return sha1.strip()
else: