diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-06-06 20:29:03 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-06-06 20:32:38 +0200 |
commit | a5497c432fe8ab1415d633d5d4b68f00a2807c26 (patch) | |
tree | bcc4bb31df4581d979fd881fbd7c5966e2cec726 /git/db/complex.py | |
parent | ce79835556c195ed6e638a33280f729537dcee54 (diff) | |
download | gitpython-a5497c432fe8ab1415d633d5d4b68f00a2807c26.tar.gz |
Streams returned by git cmd db are now containing all the data right away. This could cause several copies to exist, and makes the cmd implementation a bad choice if big files are involved
Diffstat (limited to 'git/db/complex.py')
-rw-r--r-- | git/db/complex.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/git/db/complex.py b/git/db/complex.py index 71a39c45..31b047a0 100644 --- a/git/db/complex.py +++ b/git/db/complex.py @@ -8,7 +8,10 @@ __all__ = ['CmdGitDB', 'PureGitDB', 'CmdCompatibilityGitDB', 'PureCompatibilityG class CmdGitDB(CmdPartialGitDB, PurePartialGitDB): """A database which uses primarily the git command implementation, but falls back - to pure python where it is more feasible""" + to pure python where it is more feasible + :note: To assure consistent behaviour across implementations, when calling the + ``stream()`` method a cache is created. This makes this implementation a bad + choice when reading big files as these are streamed from memory in all cases.""" class CmdCompatibilityGitDB(RepoCompatibilityInterface, CmdGitDB): """A database which fills in its missing implementation using the pure python |