summaryrefslogtreecommitdiff
path: root/themes/dogenpunk.zsh-theme
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2022-01-10 19:39:05 +0100
committerMarc Cornellà <hello@mcornella.com>2022-01-10 19:39:05 +0100
commit9c84c344d762b200de7acc794b9a0e7832144e7a (patch)
tree0b177e0ca390c6a5315d7397a51dc5b1f2806529 /themes/dogenpunk.zsh-theme
parent971683762e3aba543b0dc787e8a5ee1c16b5ace7 (diff)
downloadzsh-9c84c344d762b200de7acc794b9a0e7832144e7a.tar.gz
zsh-9c84c344d762b200de7acc794b9a0e7832144e7a.tar.bz2
zsh-9c84c344d762b200de7acc794b9a0e7832144e7a.zip
fix: disable `log.showSignature` in `git log` calls
Diffstat (limited to 'themes/dogenpunk.zsh-theme')
-rw-r--r--themes/dogenpunk.zsh-theme4
1 files changed, 1 insertions, 3 deletions
diff --git a/themes/dogenpunk.zsh-theme b/themes/dogenpunk.zsh-theme
index 6a9921288..923ca74bc 100644
--- a/themes/dogenpunk.zsh-theme
+++ b/themes/dogenpunk.zsh-theme
@@ -37,9 +37,7 @@ ZSH_THEME_GIT_TIME_SINCE_COMMIT_NEUTRAL="%{$fg[cyan]%}"
function git_time_since_commit() {
if git rev-parse --git-dir > /dev/null 2>&1; then
# Only proceed if there is actually a commit.
- if git log -n 1 > /dev/null 2>&1; then
- # Get the last commit.
- last_commit=`git log --pretty=format:'%at' -1 2> /dev/null`
+ if last_commit=`git -c log.showSignature=false log --pretty=format:'%at' -1 2> /dev/null`; then
now=`date +%s`
seconds_since_last_commit=$((now-last_commit))