]> arthur.barton.de Git - bup.git/commit
git.py: add walk_object
authorRob Browning <rlb@defaultvalue.org>
Mon, 5 Jan 2015 00:47:42 +0000 (18:47 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sun, 14 Feb 2016 00:10:09 +0000 (18:10 -0600)
commitb7e10498d1834aa330b44faf682b6c5bdc8d950a
tree1ad23323f9208b6dab3771a9fa30061c89d7109a
parent0a522f5ca20f4eee6b954eb6dee3c247832f9d54
git.py: add walk_object

Add walk_object(), which can recursively traverse a git reference (tree,
commit, blob, etc.).  This will be used by "bup gc".

Thanks to Aidan Hobson Sayers for suggesting improvements to an earlier
version of the code.

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