commit - cb5e950e0389a63428fd1e8944d15f843cf4a418
commit + f58fd00625a9f2165ab1608126c23ee8e40226fb
blob - 6ab39dc440fb2afb20ecaabc0425b545530d6c6d
blob + 38287ad91c7e0eeaf2c7f133935f5622968b42dd
--- regress/tog/diff.sh
+++ regress/tog/diff.sh
local wt="$testroot/wt"
local id=$(git_show_head "$repo")
local author_time=$(git_show_author_time "$repo")
- local date=$(date -u -r $author_time +"%a %b %e %X %Y UTC")
set -A ids "$id"
set -A alpha_ids $(get_blob_id "$repo" "" alpha)
+ set -A dates "$author_time"
got checkout "$repo" "$wt" > /dev/null
ret=$?
ids=$*
set -- "$alpha_ids" "$(get_blob_id "$repo" "" alpha)"
alpha_ids=$*
+ set -- "$dates" $(git_show_author_time "$repo")
+ dates=$*
done
cat <<-EOF >$TOG_TEST_SCRIPT
# diff consecutive commits with keywords
local lhs_id=$(pop_id 1 $ids)
local rhs_id=$(pop_id 2 $ids)
+ local date=$(date -u -r $(pop_id 2 $dates) +"%a %b %e %X %Y UTC")
cat <<-EOF >$testroot/view.expected
[1/20] diff $lhs_id $rhs_id
# diff consecutive commits using keywords with -r repository
lhs_id=$(pop_id 8 $ids)
rhs_id=$(pop_id 9 $ids)
- author_time=$(git_show_author_time "$repo")
- date=$(date -u -r $author_time +"%a %b %e %X %Y UTC")
+ date=$(date -u -r $(pop_id 9 $dates) +"%a %b %e %X %Y UTC")
cat <<-EOF >$testroot/view.expected
[1/20] diff $lhs_id refs/heads/master