From fae608e2f4ae03236c0289f6f41ef09abca97eb7 Mon Sep 17 00:00:00 2001 From: typebrook Date: Fri, 20 Mar 2020 10:24:07 +0800 Subject: update --- tigrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tigrc') diff --git a/tigrc b/tigrc index 6c069ef..70d1234 100644 --- a/tigrc +++ b/tigrc @@ -296,6 +296,7 @@ bind tree . >sh -c "git diff --patch-with-stat %(ref) -- %(file) | tig" # refs view #==================== bind refs b none +bind refs r none bind refs C none bind refs c @git checkout %(ref) @@ -305,12 +306,15 @@ bind refs F ?git fetch %(remote) %(ref) bind refs pr ?git push '%(prompt Push to which remote? )' %(ref):%(ref) bind refs pd ?git push %(remote) :%(ref) bind refs pD ?git push '%(prompt Delete from which remote? )' :%(ref) -bind refs r none bind refs rd ?git branch --remotes -D %(remote)/%(ref) bind refs . >sh -c "git diff --patch-with-stat %(branch) | tig" bind refs > >sh -c "git diff --patch-with-stat %(branch) --prefix -U1000 | tig" +# get the remotes contains given tag +bind refs r none +bind refs rr !sh -c "git remote | xargs -I{} sh -c 'echo {} $(git ls-remote {} %(ref))' | grep -E ' ' | cut -d' ' -f1" + #==================== # log view #==================== -- cgit v1.2.3-70-g09d2