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)\"; :" identity = "! git config user.name \"$(git config user.$1.name)\"; git config user.email \"$(git config user.$1.email)\"; :"
root = rev-parse --show-toplevel root = rev-parse --show-toplevel
fixup = commit --patch --no-edit --amend fixup = commit --patch --no-edit --amend
ts = timeshift
[user] [user]
useConfigOnly = true useConfigOnly = true
[user "darkwiiplayer"] [user "darkwiiplayer"]