summaryrefslogtreecommitdiff
path: root/git/repo.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2014-07-25 11:26:09 +0200
committerSebastian Thiel <byronimo@gmail.com>2014-07-25 11:26:09 +0200
commita66cfe99c1af3d745e929da6a61e1257e3a376b1 (patch)
treed8bc5213dd7e7c7f0befdf65afecb13d5435f873 /git/repo.py
parent75194159abce545bfa38c3172efb42da9b0017dc (diff)
parenta23d0d8617ba3119069e610fc7b0850a17322726 (diff)
downloadgitpython-a66cfe99c1af3d745e929da6a61e1257e3a376b1.tar.gz
Merge pull request #173 from craigez/feature/pep8
Autopep8 style whitespace cleanups & pre-commit hook
Diffstat (limited to 'git/repo.py')
-rw-r--r--git/repo.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/git/repo.py b/git/repo.py
index 0a52a3df..640ff19e 100644
--- a/git/repo.py
+++ b/git/repo.py
@@ -14,21 +14,22 @@ __all__ = ('Repo', )
class Repo(CmdCompatibilityGitDB):
+
"""Represents a git repository and allows you to query references,
gather commit information, generate diffs, create and clone repositories query
the log.
-
+
The following attributes are worth using:
-
+
'working_dir' is the working directory of the git command, wich is the working tree
directory if available or the .git directory in case of bare repositories
-
+
'working_tree_dir' is the working tree directory, but will raise AssertionError
if we are a bare repository.
-
+
'git_dir' is the .git repository directoy, which is always set."""
-
- def __init__(self, path=None, odbt = None):
+
+ def __init__(self, path=None, odbt=None):
"""Create a new Repo instance
:param path: is the path to either the root git directory or the bare git repo::
@@ -41,5 +42,5 @@ class Repo(CmdCompatibilityGitDB):
:return: git.Repo """
if odbt is not None:
warnings.warn("deprecated use of odbt", DeprecationWarning)
- #END handle old parameter
+ # END handle old parameter
super(Repo, self).__init__(path)