aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-03-20 10:24:07 +0800
committertypebrook <typebrook@gmail.com>2020-03-20 10:24:07 +0800
commitfae608e2f4ae03236c0289f6f41ef09abca97eb7 (patch)
treefd81ab5874debf0e36707bbbac7594433369c744
parent05c866343e630c4ad9dfa06e137c2398114d62be (diff)
update
-rw-r--r--tigrc6
1 files changed, 5 insertions, 1 deletions
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"
296# refs view 296# refs view
297#==================== 297#====================
298bind refs b none 298bind refs b none
299bind refs r none
299bind refs C none 300bind refs C none
300bind refs c @git checkout %(ref) 301bind refs c @git checkout %(ref)
301 302
@@ -305,12 +306,15 @@ bind refs F ?git fetch %(remote) %(ref)
305bind refs pr ?git push '%(prompt Push to which remote? )' %(ref):%(ref) 306bind refs pr ?git push '%(prompt Push to which remote? )' %(ref):%(ref)
306bind refs pd ?git push %(remote) :%(ref) 307bind refs pd ?git push %(remote) :%(ref)
307bind refs pD ?git push '%(prompt Delete from which remote? )' :%(ref) 308bind refs pD ?git push '%(prompt Delete from which remote? )' :%(ref)
308bind refs r none
309bind refs rd ?git branch --remotes -D %(remote)/%(ref) 309bind refs rd ?git branch --remotes -D %(remote)/%(ref)
310 310
311bind refs . >sh -c "git diff --patch-with-stat %(branch) | tig" 311bind refs . >sh -c "git diff --patch-with-stat %(branch) | tig"
312bind refs > >sh -c "git diff --patch-with-stat %(branch) --prefix -U1000 | tig" 312bind refs > >sh -c "git diff --patch-with-stat %(branch) --prefix -U1000 | tig"
313 313
314# get the remotes contains given tag
315bind refs r none
316bind refs rr !sh -c "git remote | xargs -I{} sh -c 'echo {} $(git ls-remote {} %(ref))' | grep -E ' ' | cut -d' ' -f1"
317
314#==================== 318#====================
315# log view 319# log view
316#==================== 320#====================