From 63fbd82ccd7bc393f9bb8ca36df33a8d674cda67 Mon Sep 17 00:00:00 2001 From: typebrook Date: Fri, 16 Aug 2019 15:22:36 +0800 Subject: update --- tigrc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tigrc') diff --git a/tigrc b/tigrc index 7f1c391..3504ce7 100644 --- a/tigrc +++ b/tigrc @@ -72,7 +72,10 @@ bind main :move-next-merge bind main :move-prev-merge bind main gh :goto HEAD bind main ; :goto %(commit)^2 # go to second parent -bind main 1 :goto $(git rev-list --all --children | grep "^%(commit)" | awk '{print $2}') +bind main 1 +sh -c "git rev-list --all --children | \ + grep '^%(commit)' | \ + awk '{print $2}') | \ + xsel -ib && echo first children" # branch bind main b none @@ -134,8 +137,8 @@ bind main ! ?git revert %(commit) # tag bind main Tn @git tag "%(prompt Enter tag name: )" %(commit) bind main TN !git tag "%(prompt Enter tag name: )" %(commit) -a -bind main Tm @sh -c 'git tag -d %(tag) && git tag "%(prompt Enter tag name: )" %(commit)' -bind main TM @sh -c 'git cat-file -p %(tag) | sed -n \'6,$p\' | git tag -a -F - "%(prompt Enter tag name: )" && git tag -d %(tag)' +bind main Tm @sh -c 'git tag -d %(tag) && git tag "%(prompt Move which tag to here? )" %(commit)' +bind main TM @sh -c 'git cat-file -p %(tag) | sed -n \'6,$p\' | git tag -a -F - "%(prompt Rename tag into: )" && git tag -d %(tag)' bind main Tc !git tag %(tag) %(tag)^{} -f -m "%(prompt Enter new content: )" bind main Ts >tig show %(tag) bind main Td @git tag -d "%(prompt Delete tag: )" -- cgit v1.2.3-70-g09d2