summaryrefslogtreecommitdiff
path: root/t/t4211/sha256/expect.beginning-of-file
diff options
context:
space:
mode:
authorLibravatar luciano.rocha@booking.com <luciano.rocha@booking.com>2020-04-14 16:27:26 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-04-15 09:57:23 -0700
commit312cd7613013adbf9842e17a61b15d0e5950fb8c (patch)
tree934503fb58d508165b44f638cc15bf5cdfc62e06 /t/t4211/sha256/expect.beginning-of-file
parentGit 2.24.2 (diff)
downloadtgif-312cd7613013adbf9842e17a61b15d0e5950fb8c.tar.xz
freshen_file(): use NULL `times' for implicit current-time
Update freshen_file() to use a NULL `times', semantically equivalent to the currently setup, with an explicit `actime' and `modtime' set to the "current time", but with the advantage that it works with other files not owned by the current user. Fixes an issue on shared repos with a split index, where eventually a user's operation creates a shared index, and another user will later do an operation that will try to update its freshness, but will instead raise a warning: $ git status warning: could not freshen shared index '.git/sharedindex.bd736fa10e0519593fefdb2aec253534470865b2' Signed-off-by: Luciano Miguel Ferreira Rocha <luciano.rocha@booking.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4211/sha256/expect.beginning-of-file')
0 files changed, 0 insertions, 0 deletions