diff options
author | typebrook <typebrook@gmail.com> | 2020-03-20 10:24:07 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-03-20 10:24:07 +0800 |
commit | fae608e2f4ae03236c0289f6f41ef09abca97eb7 (patch) | |
tree | fd81ab5874debf0e36707bbbac7594433369c744 | |
parent | 05c866343e630c4ad9dfa06e137c2398114d62be (diff) |
update
-rw-r--r-- | tigrc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -296,6 +296,7 @@ bind tree . >sh -c "git diff --patch-with-stat %(ref) -- %(file) | tig" | |||
296 | # refs view | 296 | # refs view |
297 | #==================== | 297 | #==================== |
298 | bind refs b none | 298 | bind refs b none |
299 | bind refs r none | ||
299 | bind refs C none | 300 | bind refs C none |
300 | bind refs c @git checkout %(ref) | 301 | bind refs c @git checkout %(ref) |
301 | 302 | ||
@@ -305,12 +306,15 @@ bind refs F ?git fetch %(remote) %(ref) | |||
305 | bind refs pr ?git push '%(prompt Push to which remote? )' %(ref):%(ref) | 306 | bind refs pr ?git push '%(prompt Push to which remote? )' %(ref):%(ref) |
306 | bind refs pd ?git push %(remote) :%(ref) | 307 | bind refs pd ?git push %(remote) :%(ref) |
307 | bind refs pD ?git push '%(prompt Delete from which remote? )' :%(ref) | 308 | bind refs pD ?git push '%(prompt Delete from which remote? )' :%(ref) |
308 | bind refs r none | ||
309 | bind refs rd ?git branch --remotes -D %(remote)/%(ref) | 309 | bind refs rd ?git branch --remotes -D %(remote)/%(ref) |
310 | 310 | ||
311 | bind refs . >sh -c "git diff --patch-with-stat %(branch) | tig" | 311 | bind refs . >sh -c "git diff --patch-with-stat %(branch) | tig" |
312 | bind refs > >sh -c "git diff --patch-with-stat %(branch) --prefix -U1000 | tig" | 312 | bind refs > >sh -c "git diff --patch-with-stat %(branch) --prefix -U1000 | tig" |
313 | 313 | ||
314 | # get the remotes contains given tag | ||
315 | bind refs r none | ||
316 | bind 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 | #==================== |