1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
#!/bin/sh
#
# Test reading commit IDs from stdin with --stdin.
. libtest.sh
. libgit.sh
export LINES=16
git_clone 'repo-one'
steps '
:save-display main-stdin.screen
'
stdin <<EOF
$(cd "$work_dir" && git rev-list --grep='Commit 8' HEAD)
EOF
test_tig --no-walk --stdin
assert_equals 'main-stdin.screen' <<EOF
2010-01-12 01:56 +0000 Max Power Commit 8 E
2010-01-03 13:33 +0000 Jørgen Thygesen Brahe Commit 8 D
2009-12-26 01:11 +0000 作者 Commit 8 C
2009-12-17 12:49 +0000 René Lévesque <v1.0> Commit 8 B
2009-12-09 00:27 +0000 A. U. Thor Commit 8 A
[main] d9a8c8b1e52ba7f1673cebb271f1fc0bdac3579b - commit 1 of 5 100%
EOF
|