From 40289fd5848b5e1e7efc626f85e29708dc8a70aa Mon Sep 17 00:00:00 2001 From: Stephen Martin Date: Wed, 18 Oct 2023 22:58:45 -0600 Subject: [PATCH] Sort tags by refname in fzf list. Issue #64 --- ugit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ugit b/ugit index 0c154d4..576080c 100755 --- a/ugit +++ b/ugit @@ -325,7 +325,7 @@ undo_git_tag() { perror "Unable to fetch tags from remote.Please check repository access." exit fi - tag=$(git tag | fzf --ansi --height 80% \ + tag=$(git tag --sort=v:refname | fzf --ansi --height 80% \ --reverse --multi --header="Choose a tag to remove" \ --preview "echo {} | cut -d' ' -f1 | xargs -I{} git show --color --pretty=format:%b {}" \ --bind 'j:down,k:up,ctrl-j:preview-down,ctrl-k:preview-up,ctrl-space:toggle-preview' --preview-window right:60% )