From fa734594fe4391835467605d3fdd5248bfe9225e Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 21 Dec 2021 11:58:56 -0500 Subject: Remove git show signature config --- lib/common.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/common.nix b/lib/common.nix index b543385..13ca9ae 100644 --- a/lib/common.nix +++ b/lib/common.nix @@ -114,7 +114,6 @@ in }; log = { date = "local"; - showSignature = true; }; }; @@ -285,7 +284,7 @@ in is_in_git_repo || return git branch -a --color=always | grep -v '/HEAD\s' | sort | fzf-down --ansi --multi --tac --preview-window right:70% \ - --preview 'git log --no-show-signature --oneline --graph --date=short --color=always --pretty="format:%C(auto)%cd %h%d %s" $(sed s/^..// <<< {} | cut -d" " -f1) | head -'$LINES | + --preview 'git log --oneline --graph --date=short --color=always --pretty="format:%C(auto)%cd %h%d %s" $(sed s/^..// <<< {} | cut -d" " -f1) | head -'$LINES | sed 's/^..//' | cut -d' ' -f1 | sed 's#^remotes/##' } @@ -299,7 +298,7 @@ in _gh() { is_in_git_repo || return - git log --no-show-signature --date=short --format="%C(green)%C(bold)%cd %C(auto)%h%d %s (%an)" --graph --color=always | + git log --date=short --format="%C(green)%C(bold)%cd %C(auto)%h%d %s (%an)" --graph --color=always | fzf-down --ansi --no-sort --reverse --multi --bind 'ctrl-s:toggle-sort' \ --header 'Press CTRL-S to toggle sort' \ --preview 'grep -o "[a-f0-9]\{7,\}" <<< {} | xargs git show --color=always | head -'$LINES | @@ -310,7 +309,7 @@ in is_in_git_repo || return git remote -v | awk '{print $1 "\t" $2}' | uniq | fzf-down --tac \ - --preview 'git log --no-show-signature --oneline --graph --date=short --pretty="format:%C(auto)%cd %h%d %s" {1} | head -200' | + --preview 'git log --oneline --graph --date=short --pretty="format:%C(auto)%cd %h%d %s" {1} | head -200' | cut -d$'\t' -f1 } bind '"\er": redraw-current-line' -- cgit v1.2.3