aboutsummaryrefslogtreecommitdiffhomepage
path: root/tigrc
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2019-03-26 21:16:16 +0800
committertypebrook <typebrook@gmail.com>2019-03-26 21:16:16 +0800
commita9b48ef9f97a4b1255a63dca8e2524927729db96 (patch)
tree5551c8b2c248f7b4faefb9899c21fabcd40d21ef /tigrc
parent1cc8ee9777bbb5221271516351fde770e52350d1 (diff)
update
Diffstat (limited to 'tigrc')
-rw-r--r--tigrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/tigrc b/tigrc
index 86dc6ed..23f030f 100644
--- a/tigrc
+++ b/tigrc
@@ -46,6 +46,7 @@ bind main P ?git push %(remote) %(branch):%(branch)
46bind main u ?git reset %(commit) --soft 46bind main u ?git reset %(commit) --soft
47bind main gu ?git reset %(commit) --hard 47bind main gu ?git reset %(commit) --hard
48bind main <Ctrl-r> !?git rebase -i %(commit) 48bind main <Ctrl-r> !?git rebase -i %(commit)
49bind main ! ?git revert %(commit)
49 50
50bind main Tn @git tag "%(prompt Enter tag name: )" %(commit) 51bind main Tn @git tag "%(prompt Enter tag name: )" %(commit)
51bind main TN !git tag "%(prompt Enter tag name: )" %(commit) -a 52bind main TN !git tag "%(prompt Enter tag name: )" %(commit) -a
@@ -59,6 +60,9 @@ bind main V @git log -S "%(prompt Enter search word: )"
59 60
60bind main S !git format-patch -1 %(commit) 61bind main S !git format-patch -1 %(commit)
61 62
63bind main . >sh -c "git diff %(commit) | tig"
64bind main > >sh -c "git diff %(commit) --no-prefix -U1000 | tig"
65
62# blame view 66# blame view
63set blame-view = author:abbreviated date:default id:yes,color line-number:yes text 67set blame-view = author:abbreviated date:default id:yes,color line-number:yes text
64 68
@@ -101,9 +105,13 @@ bind tree 9 !@sh -c "echo -n %(blob) | head -c7 | xclip -selection c"
101# refs view 105# refs view
102bind refs C none 106bind refs C none
103bind refs c @git checkout %(branch) 107bind refs c @git checkout %(branch)
108
104bind refs bd ?git branch -d %(branch) 109bind refs bd ?git branch -d %(branch)
105bind refs bD ?git branch -D %(branch) 110bind refs bD ?git branch -D %(branch)
106 111
112bind refs . >sh -c "git diff %(branch) | tig"
113bind refs > >sh -c "git diff %(branch) --prefix -U1000 | tig"
114
107# log view 115# log view
108bind log n :/^commit 116bind log n :/^commit
109bind log p :?^commit 117bind log p :?^commit