diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-10-31 19:40:35 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-11-06 08:57:20 +0200 |
commit | bfb56ad43fb63f46dc247e6d5382fdeb1e4772cd (patch) | |
tree | c5c382638c1c8989bd4e06eca64fc27a5b296a02 /git-mtime.sh | |
parent | ca00525a42de0fc909becc68a677cd6a167a856d (diff) | |
download | gtdfh.liw.fi-bfb56ad43fb63f46dc247e6d5382fdeb1e4772cd.tar.gz |
rewrite the whole site
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Sponsored-by: author
Diffstat (limited to 'git-mtime.sh')
-rwxr-xr-x | git-mtime.sh | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/git-mtime.sh b/git-mtime.sh deleted file mode 100755 index 84c9299..0000000 --- a/git-mtime.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# From https://stackoverflow.com/questions/2458042/restore-a-files-modification-time-in-git - -set -euo pipefail - -rev=HEAD -for f in $(git ls-tree -r -t --full-name --name-only "$rev") -do - echo "setting mtime for $f" - touch -d "$(git log --pretty=format:%cI -1 "$rev" -- "$f")" "$f"; -done |