diff options
author | typebrook <typebrook@gmail.com> | 2019-04-02 14:55:08 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-04-02 14:55:08 +0800 |
commit | 6746cbdd325c61dc65ee8548c48ee6bac9765644 (patch) | |
tree | a2afd6396a64099ac2293d7962a0f2c65f17ed10 /tigrc | |
parent | e8228d9e34b12beb9d6105392a59854343ec3e2b (diff) |
update
Diffstat (limited to 'tigrc')
-rw-r--r-- | tigrc | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -8,7 +8,7 @@ | |||
8 | bind generic g none | 8 | bind generic g none |
9 | bind generic gg move-first-line | 9 | bind generic gg move-first-line |
10 | bind generic G move-last-line | 10 | bind generic G move-last-line |
11 | bind generic <C-h> scroll-left | 11 | bind generic <C-H> scroll-left |
12 | bind generic <C-L> none | 12 | bind generic <C-L> none |
13 | bind generic <C-L> scroll-right | 13 | bind generic <C-L> scroll-right |
14 | 14 | ||
@@ -105,7 +105,7 @@ bind main V @git log -S "%(prompt Enter search word: )" | |||
105 | 105 | ||
106 | # make patches | 106 | # make patches |
107 | bind main S ?>git format-patch -1 %(commit) | 107 | bind main S ?>git format-patch -1 %(commit) |
108 | bind main <C-s> ?>git format-patch %(commit) | 108 | bind main <C-S> ?>git format-patch %(commit) |
109 | 109 | ||
110 | # show diff based on revision | 110 | # show diff based on revision |
111 | bind main . >sh -c "git diff %(commit) | tig" | 111 | bind main . >sh -c "git diff %(commit) | tig" |
@@ -142,7 +142,6 @@ bind status U !git checkout --patch -- %(file) | |||
142 | 142 | ||
143 | bind status c @git commit -m "%(prompt Enter commit message: )" | 143 | bind status c @git commit -m "%(prompt Enter commit message: )" |
144 | bind status a ?>git commit --amend | 144 | bind status a ?>git commit --amend |
145 | bind status p none | ||
146 | bind status p ?>sh -c "git commit -m 'update' && git push" | 145 | bind status p ?>sh -c "git commit -m 'update' && git push" |
147 | 146 | ||
148 | bind status D ?>rm %(file) | 147 | bind status D ?>rm %(file) |
@@ -151,7 +150,7 @@ bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(fi | |||
151 | bind status Tu @git update-index --assume-unchanged %(file) | 150 | bind status Tu @git update-index --assume-unchanged %(file) |
152 | 151 | ||
153 | # apply patch file | 152 | # apply patch file |
154 | bind status <C-o> ?git am %(file) | 153 | bind status <C-O> ?git am %(file) |
155 | 154 | ||
156 | #==================== | 155 | #==================== |
157 | # stash view | 156 | # stash view |
@@ -197,7 +196,7 @@ bind refs c @git checkout %(branch) | |||
197 | bind refs b none | 196 | bind refs b none |
198 | bind refs bd @git branch -d %(branch) | 197 | bind refs bd @git branch -d %(branch) |
199 | bind refs bD ?git branch -D %(branch) | 198 | bind refs bD ?git branch -D %(branch) |
200 | bind refs rbd ?git push %(remote) :%(branch) | 199 | bind refs pd ?git push %(remote) :%(branch) |
201 | bind refs r none | 200 | bind refs r none |
202 | bind refs rbu ?git branch -rd %(remote)/%(branch) | 201 | bind refs rbu ?git branch -rd %(remote)/%(branch) |
203 | 202 | ||