commit - 7ee43e4fb8c1b89b2cff391213f1a90051fac919
commit + 9c986b77d3f71b37ff5b5c6b4ec58b495ad8f312
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