Add git timeshift command
This commit is contained in:
parent
91d7bd2224
commit
d3e546e39e
2 changed files with 6 additions and 0 deletions
5
bin/git-timeshift
Executable file
5
bin/git-timeshift
Executable 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 "$@"
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue