aboutsummaryrefslogtreecommitdiff
path: root/mkshrc
diff options
context:
space:
mode:
Diffstat (limited to 'mkshrc')
-rw-r--r--mkshrc20
1 files changed, 20 insertions, 0 deletions
diff --git a/mkshrc b/mkshrc
index b901a7a..c0cad9a 100644
--- a/mkshrc
+++ b/mkshrc
@@ -356,6 +356,26 @@ eval _tmux_session -s "\$session" -w "\$working_directory" -n "main" \
}
+gitdate() {
+ date=""
+ while [ $# -gt 0 ] ; do case $1 in
+ -d) date="$2" ; shift ; shift ;;
+ *) printf "Bad option: $1... usage:\n$0 -d \"\$date_string\"\n" ; return ;;
+ esac ; done
+
+ date="$(date --date "$date")"
+
+ export GIT_AUTHOR_DATE="$date"
+ export GIT_COMMITTER_DATE="$date"
+ echo export GIT_AUTHOR_DATE="$date"
+ echo export GIT_COMMITTER_DATE="$date"
+}
+
+gitdateUnset() {
+ unset GIT_AUTHOR_DATE
+ unset GIT_COMMITTER_DATE
+}
+
gpgTmpDir() {
set -x
if echo "$GNUPGHOME" | grep -q "/dev/shm/"; then