summaryrefslogtreecommitdiff
path: root/lib/git
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-20 10:48:31 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-20 10:51:10 +0200
commit972a8b84bb4a3adec6322219c11370e48824404e (patch)
tree6caf1c0558a4a19cdd1d97c591883f6ce35c004a /lib/git
parentdd76b9e72b21d2502a51e3605e5e6ab640e5f0bd (diff)
downloadgitpython-972a8b84bb4a3adec6322219c11370e48824404e.tar.gz
Added slots to Repo type to be sure we do not accidentally set values on it, and to be more efficient of course ;)
TODO: Added info about possible config improvement
Diffstat (limited to 'lib/git')
-rw-r--r--lib/git/repo.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/git/repo.py b/lib/git/repo.py
index 3efefd9c..898b0f30 100644
--- a/lib/git/repo.py
+++ b/lib/git/repo.py
@@ -42,6 +42,7 @@ class Repo(object):
the log.
"""
DAEMON_EXPORT_FILE = 'git-daemon-export-ok'
+ __slots__ = ( "wd", "path", "_bare", "git" )
# precompiled regex
re_whitespace = re.compile(r'\s+')