Add 'ostree log' command

Follows the parent of commits showing each in turn until it reaches
the top of the commit tree.

https://bugzilla.gnome.org/show_bug.cgi?id=705973
This commit is contained in:
Stef Walter committed 2013-08-15 07:01:30 +02:00
1 parent 5efb8e86e9
commit 3989e0d397
5 files changed
+121 -1

No files matched your search

+11 -1
View File
@@ -19,7 +19,7 @@
set -e
echo "1..37"
echo "1..38"
. $(dirname $0)/libtest.sh
@@ -255,3 +255,13 @@ $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"
cd ${test_tmpdir}
checksum1=$($OSTREE commit -b test5 -s "First commit")
checksum2=$($OSTREE commit -b test5 -s "Second commit")
$OSTREE log test5 > log-output
assert_file_has_content log-output "First commit"
assert_file_has_content log-output "commit $checksum1"
assert_file_has_content log-output "Second commit"
assert_file_has_content log-output "commit $checksum2"
echo "ok log output"