diff options
author | Jeff King <peff@peff.net> | 2020-07-15 03:42:50 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-07-15 08:02:58 -0700 |
commit | 180a4d76ac8f7c3e97be023e5943f719f3efb55b (patch) | |
tree | 20dd5951a9ad15b9d57cf1aefefb6466b78e9387 /t/t4013/diff.log_-p_--first-parent_master | |
parent | test-lib: set deterministic default author/committer date (diff) | |
download | tgif-180a4d76ac8f7c3e97be023e5943f719f3efb55b.tar.xz |
t9100: stop depending on commit timestamps
An earlier "fix" to this script gave up updating it not to rely on
the current time because we cannot control what timestamp subversion
gives its commits. We however could solve the issue in a different
way and still use deterministic timestamps on Git commits.
One fix would be to sort the list of trees before removing duplicates,
but that loses information:
- we do care that the fetched history is in the same order
- there's a tree which appears twice in the history, and we'd want to
make sure that it's there both times
So instead, let's de-duplicate using a hash (preserving the order), and
drop only lines with identical trees and subjects (preserving the tree
which appears twice, since it has different subjects each time).
Signed-off-by: Jeff King <peff@peff.net>
Acked-by: Eric Wong <e@80x24.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.log_-p_--first-parent_master')
0 files changed, 0 insertions, 0 deletions