diff options
| author | typebrook <typebrook@gmail.com> | 2019-03-26 21:16:16 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2019-03-26 21:16:16 +0800 |
| commit | a9b48ef9f97a4b1255a63dca8e2524927729db96 (patch) | |
| tree | 5551c8b2c248f7b4faefb9899c21fabcd40d21ef /tigrc | |
| parent | 1cc8ee9777bbb5221271516351fde770e52350d1 (diff) | |
update
Diffstat (limited to 'tigrc')
| -rw-r--r-- | tigrc | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -46,6 +46,7 @@ bind main P ?git push %(remote) %(branch):%(branch) | |||
| 46 | bind main u ?git reset %(commit) --soft | 46 | bind main u ?git reset %(commit) --soft |
| 47 | bind main gu ?git reset %(commit) --hard | 47 | bind main gu ?git reset %(commit) --hard |
| 48 | bind main <Ctrl-r> !?git rebase -i %(commit) | 48 | bind main <Ctrl-r> !?git rebase -i %(commit) |
| 49 | bind main ! ?git revert %(commit) | ||
| 49 | 50 | ||
| 50 | bind main Tn @git tag "%(prompt Enter tag name: )" %(commit) | 51 | bind main Tn @git tag "%(prompt Enter tag name: )" %(commit) |
| 51 | bind main TN !git tag "%(prompt Enter tag name: )" %(commit) -a | 52 | bind 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 | ||
| 60 | bind main S !git format-patch -1 %(commit) | 61 | bind main S !git format-patch -1 %(commit) |
| 61 | 62 | ||
| 63 | bind main . >sh -c "git diff %(commit) | tig" | ||
| 64 | bind main > >sh -c "git diff %(commit) --no-prefix -U1000 | tig" | ||
| 65 | |||
| 62 | # blame view | 66 | # blame view |
| 63 | set blame-view = author:abbreviated date:default id:yes,color line-number:yes text | 67 | set 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 |
| 102 | bind refs C none | 106 | bind refs C none |
| 103 | bind refs c @git checkout %(branch) | 107 | bind refs c @git checkout %(branch) |
| 108 | |||
| 104 | bind refs bd ?git branch -d %(branch) | 109 | bind refs bd ?git branch -d %(branch) |
| 105 | bind refs bD ?git branch -D %(branch) | 110 | bind refs bD ?git branch -D %(branch) |
| 106 | 111 | ||
| 112 | bind refs . >sh -c "git diff %(branch) | tig" | ||
| 113 | bind refs > >sh -c "git diff %(branch) --prefix -U1000 | tig" | ||
| 114 | |||
| 107 | # log view | 115 | # log view |
| 108 | bind log n :/^commit | 116 | bind log n :/^commit |
| 109 | bind log p :?^commit | 117 | bind log p :?^commit |