]> arthur.barton.de Git - bup.git/commit
Support catpipe get(...,size=True); require git >= 1.5.6
authorRob Browning <rlb@defaultvalue.org>
Sun, 18 Jun 2017 20:40:41 +0000 (15:40 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 18 Jun 2017 20:42:27 +0000 (15:42 -0500)
commitdb8a2b95e2cc44f7070ae6ac0bbc086e51696c72
treece62c816b684a29d9c8614bb026af3633f4d38e5
parent3550c358a4a0ab94d0fd312fd9fa86ec3ac4741f
Support catpipe get(...,size=True); require git >= 1.5.6

Add a new size argument to get() that requests the object size in
addition to the type.  To support this, require git 1.5.6 (circa 2008)
or newer so that we'll have cat-file --batch.

Remove the _slow_get() fallback since it's no longer needed.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/git.py
lib/bup/t/tgit.py