diff options
author | Ori Bernstein <ori@eigenstate.org> | 2021-08-12 14:42:47 +0000 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2021-08-12 14:42:47 +0000 |
commit | 758067ee56f48e0441941d7b5599b69427bfc3fa (patch) | |
tree | 36fc10b3e982f012d87f4b9068dd9fcab24ff085 | |
parent | 54993a1f5bdc14ae702a8fe3142cfb3225d2c506 (diff) | |
download | plan9front-758067ee56f48e0441941d7b5599b69427bfc3fa.tar.xz |
git/export: use 'date -f' instead of 'date -m'
The '-m' flag was added to date largely
to support git scripts. It predates the
tmdate code, which is why it exists, but
it's a recent enough addition that nothing
I'm aware of uses it, other than git.
As a result, it would be good to remove
it, so let's do that.
-rwxr-xr-x | sys/src/cmd/git/export | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/git/export b/sys/src/cmd/git/export index 1c062b96f..2d7c068d3 100755 --- a/sys/src/cmd/git/export +++ b/sys/src/cmd/git/export @@ -42,7 +42,7 @@ for(c in $commits){ bind $cp/tree b echo From: `{cat $cp/author} - echo Date: `{date -um `{mtime $cp/author | awk '{print $1}'}} + echo Date: `{date -uf'WW, DD MMM YYYY hh:mm:ss Z' `{walk -em $cp/author}} <$cp/msg awk ' NR == 1 { n = ENVIRON["n"] |