Intelligible display for 'ostree show'

Show something similar to git metadata display. Show raw variant
data when --raw is specified

https://bugzilla.gnome.org/show_bug.cgi?id=705973
This commit is contained in:
Stef Walter committed 2013-08-15 06:48:25 +02:00
1 parent 11bdbe1fb8
commit 790132a81a
5 files changed
+217 -28

No files matched your search

+8 -1
View File
@@ -19,7 +19,7 @@
set -e
echo "1..36"
echo "1..37"
. $(dirname $0)/libtest.sh
@@ -248,3 +248,10 @@ echo "ok ls with no argument"
cd ${test_tmpdir}
$OSTREE show test2
echo "ok show with non-checksum"
cd ${test_tmpdir}
checksum=$($OSTREE commit -b test4 -s "Third commit")
$OSTREE show test4 > show-output
assert_file_has_content show-output "Third commit"
assert_file_has_content show-output "commit $checksum"
echo "ok show full output"