diff options
Diffstat (limited to 'tigrc')
-rw-r--r-- | tigrc | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -135,17 +135,22 @@ bind blob m >tig %(file) | |||
135 | bind status j :/^[MADRU?] | 135 | bind status j :/^[MADRU?] |
136 | bind status k :?^[MADRU?] | 136 | bind status k :?^[MADRU?] |
137 | 137 | ||
138 | # stash | ||
138 | bind status s ?>git stash | 139 | bind status s ?>git stash |
139 | bind status S @git stash push -m "%(prompt Enter stash name: )" | 140 | bind status S @git stash push -m "%(prompt Enter stash name: )" |
140 | bind status gs !git stashstaged | 141 | bind status gs !git stashstaged |
141 | bind status U !git checkout --patch -- %(file) | 142 | bind status U !git checkout --patch -- %(file) |
142 | 143 | ||
144 | # quick commit | ||
143 | bind status c @git commit -m "%(prompt Enter commit message: )" | 145 | bind status c @git commit -m "%(prompt Enter commit message: )" |
144 | bind status a ?>git commit --amend | 146 | bind status a ?>git commit --amend |
145 | bind status p ?>sh -c "git commit -m 'update' && git push" | 147 | bind status p ?>sh -c "git commit -m 'update' && git push" |
146 | 148 | ||
147 | bind status D ?>rm %(file) | 149 | bind status D ?>rm %(file) |
148 | 150 | ||
151 | # solve conflict | ||
152 | bind status Ra @git rebase --abort | ||
153 | bind status Rc @git rebase --continue | ||
149 | bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\"" | 154 | bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\"" |
150 | bind status Tu @git update-index --assume-unchanged %(file) | 155 | bind status Tu @git update-index --assume-unchanged %(file) |
151 | 156 | ||
@@ -167,8 +172,8 @@ bind stash n @sh -c "git stash drop %(stash) | \ | |||
167 | #==================== | 172 | #==================== |
168 | # stage view | 173 | # stage view |
169 | #==================== | 174 | #==================== |
170 | bind stage n :/^@@ | 175 | bind stage <Ctrl-N> :/^@@ |
171 | bind stage p :?^@@ | 176 | bind stage <Ctrl-P> :?^@@ |
172 | bind stage <Esc>n :/^diff --(git|cc) | 177 | bind stage <Esc>n :/^diff --(git|cc) |
173 | bind stage <Esc>p :?^diff --(git|cc) | 178 | bind stage <Esc>p :?^diff --(git|cc) |
174 | 179 | ||