aboutsummaryrefslogtreecommitdiffhomepage
path: root/tigrc
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2019-04-03 11:05:29 +0800
committertypebrook <typebrook@gmail.com>2019-04-03 11:05:29 +0800
commitbd447639a960257155ed3e6eeab636f282bd72f9 (patch)
tree841396b1b59b4d0452e83b078500a441ec18c592 /tigrc
parent6746cbdd325c61dc65ee8548c48ee6bac9765644 (diff)
update
Diffstat (limited to 'tigrc')
-rw-r--r--tigrc9
1 files changed, 7 insertions, 2 deletions
diff --git a/tigrc b/tigrc
index 7bfca6f..4118346 100644
--- a/tigrc
+++ b/tigrc
@@ -135,17 +135,22 @@ bind blob m >tig %(file)
135bind status j :/^[MADRU?] 135bind status j :/^[MADRU?]
136bind status k :?^[MADRU?] 136bind status k :?^[MADRU?]
137 137
138# stash
138bind status s ?>git stash 139bind status s ?>git stash
139bind status S @git stash push -m "%(prompt Enter stash name: )" 140bind status S @git stash push -m "%(prompt Enter stash name: )"
140bind status gs !git stashstaged 141bind status gs !git stashstaged
141bind status U !git checkout --patch -- %(file) 142bind status U !git checkout --patch -- %(file)
142 143
144# quick commit
143bind status c @git commit -m "%(prompt Enter commit message: )" 145bind status c @git commit -m "%(prompt Enter commit message: )"
144bind status a ?>git commit --amend 146bind status a ?>git commit --amend
145bind status p ?>sh -c "git commit -m 'update' && git push" 147bind status p ?>sh -c "git commit -m 'update' && git push"
146 148
147bind status D ?>rm %(file) 149bind status D ?>rm %(file)
148 150
151# solve conflict
152bind status Ra @git rebase --abort
153bind status Rc @git rebase --continue
149bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\"" 154bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\""
150bind status Tu @git update-index --assume-unchanged %(file) 155bind 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#====================
170bind stage n :/^@@ 175bind stage <Ctrl-N> :/^@@
171bind stage p :?^@@ 176bind stage <Ctrl-P> :?^@@
172bind stage <Esc>n :/^diff --(git|cc) 177bind stage <Esc>n :/^diff --(git|cc)
173bind stage <Esc>p :?^diff --(git|cc) 178bind stage <Esc>p :?^diff --(git|cc)
174 179