git.py: add support for passing in a stdin input stream
authorDavid Aguilar <davvid@gmail.com>
Thu, 29 May 2008 08:59:38 +0000 (01:59 -0700)
committerDavid Aguilar <davvid@gmail.com>
Thu, 29 May 2008 08:59:38 +0000 (01:59 -0700)
commit2405cf54ac06140a0821f55b34c1d54f699e8e73
tree4d21880097532f025e8dd9772751b20b3964dd0a
parent579d1b8174c9be915c0fa17a67fc38cc6de36ad7
git.py: add support for passing in a stdin input stream

execute/method_missing now support:

fh = open('filename', 'r')
print git.foo( istream=fh )
fh.close()

The name "istream" was chosen so that it would not conflict
with any of the builtin git flags.  "stdin", for instance,
is used by git.

Signed-off-by: David Aguilar <davvid@gmail.com>
lib/git_python/git.py