From 1ab7c0c79fe808516d112b9b2c143bcea242dcb8 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 20 Jul 2021 19:17:27 -0400 Subject: git scripts: no-show-signature --- lib/common.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/common.nix b/lib/common.nix index cbe0d25..95f072f 100644 --- a/lib/common.nix +++ b/lib/common.nix @@ -307,7 +307,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 --oneline --graph --date=short --color=always --pretty="format:%C(auto)%cd %h%d %s" $(sed s/^..// <<< {} | cut -d" " -f1) | head -'$LINES | + --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 | sed 's/^..//' | cut -d' ' -f1 | sed 's#^remotes/##' } @@ -321,7 +321,7 @@ in _gh() { is_in_git_repo || return - git log --date=short --format="%C(green)%C(bold)%cd %C(auto)%h%d %s (%an)" --graph --color=always | + git log --no-show-signature --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 | @@ -332,7 +332,7 @@ in is_in_git_repo || return git remote -v | awk '{print $1 "\t" $2}' | uniq | fzf-down --tac \ - --preview 'git log --oneline --graph --date=short --pretty="format:%C(auto)%cd %h%d %s" {1} | head -200' | + --preview 'git log --no-show-signature --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