]> arthur.barton.de Git - bup.git/commit
ls: add --commit-hash and drop vfs nominal_oid
authorRob Browning <rlb@defaultvalue.org>
Sat, 9 Dec 2017 00:21:21 +0000 (18:21 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sun, 17 Dec 2017 02:05:47 +0000 (20:05 -0600)
commit3f6a6fdf2c99a378950682e77fcacec3aa4fe826
treeafeb80fae9f70e61754f63955cdbdaac1a34e87d
parent7884c51f475b5270a6b9b54110144348fe90ad38
ls: add --commit-hash and drop vfs nominal_oid

Report the tree hash for commits for ls -s, unless --commit-hash is
also specified, and add some initial tests.  This brings -s in line
with 38a49e9eb930e8a47e9de5a9715fad659a774e8b.

Report 0000000000000000000000000000000000000000 for items without a
hash so that the number of output fields doesn't vary in that case.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/ls.py
lib/bup/vfs2.py
t/test-ls.sh