Add git timeshift command

This commit is contained in:
Talia 2021-01-22 09:32:36 +01:00
parent 91d7bd2224
commit d3e546e39e
2 changed files with 6 additions and 0 deletions

5
bin/git-timeshift Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
DATE="$1"; shift 1
export GIT_AUTHOR_DATE=$(date +%s -d "$DATE")
export GIT_COMMITTER_DATE=$GIT_AUTHOR_DATE
git "$@"

View file

@ -23,6 +23,7 @@
identity = "! git config user.name \"$(git config user.$1.name)\"; git config user.email \"$(git config user.$1.email)\"; :"
root = rev-parse --show-toplevel
fixup = commit --patch --no-edit --amend
ts = timeshift
[user]
useConfigOnly = true
[user "darkwiiplayer"]