diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-04-16 17:02:29 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-04-16 17:02:29 -0400 |
commit | b14f84c4acccbc8450a9102b3b647013989b27bb (patch) | |
tree | bc02d7e1c6228775b46040de2945382324a0c4a9 /mtime-to-git | |
parent | 6c5c0f8c682a2727bb71652668fef90a40d99f25 (diff) |
--gettime revamp
* Rename --getctime to --gettime. (The old name still works for
backwards compatability.)
* --gettime now also looks up last modification time.
* Add rcs_getmtime to plugin API; currently only implemented
for git.
Diffstat (limited to 'mtime-to-git')
-rwxr-xr-x | mtime-to-git | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/mtime-to-git b/mtime-to-git deleted file mode 100755 index 9875af5d7..000000000 --- a/mtime-to-git +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -# Sets mtimes of all files in the tree their last change date -# based on git's log. Useful to avoid too new dates after a -# fresh checkout, which lead to ikiwiki unnecessarily rebuilding -# basewiki files on upgrade. -if [ -d .git ]; then - for file in $(git ls-files); do - date="$(git log -1 --date=rfc "$file" | grep ^Date: | sed -e 's/Date://')" - if [ -n "$date" ]; then - echo "$date $file" - touch -d"$date" $file - fi - done -fi |