]> arthur.barton.de Git - bup.git/commit
git.py: rename treeparse to tree_decode() and add tree_encode().
authorAvery Pennarun <apenwarr@gmail.com>
Sun, 20 Feb 2011 01:57:48 +0000 (17:57 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 20 Feb 2011 05:38:28 +0000 (21:38 -0800)
commit252c21db981dfdc23bae4c515929c3a4f814ddea
tree8b6511cfb417fc7b826818cc9e5f074e5b4a2445
parent9133f733cdde36d7ecd627d339f90d87b7d2b0e6
git.py: rename treeparse to tree_decode() and add tree_encode().

tree_encode() gets most of its functionality from PackWriter.new_tree(),
which is not just a one liner that calls tree_encode().  We will soon want
to be able to calculate tree hashes without actually writing a tree to a
packfile, so let's split out that functionality.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
lib/bup/git.py
lib/bup/vfs.py