diff options
author | typebrook <typebrook@gmail.com> | 2019-03-27 16:44:30 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-03-27 16:44:30 +0800 |
commit | 943d518588e808a31ca74c055d1c56b25d0485cf (patch) | |
tree | 45c00647a2513d66b5d2f08ca585d11157954fe9 | |
parent | b5f43e5b97937b741c06a8cd4ad33895085eaf31 (diff) |
update
-rw-r--r-- | tigrc | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -8,8 +8,9 @@ | |||
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 <Ctrl-h> scroll-left | 11 | bind generic <C-h> scroll-left |
12 | bind generic <Ctrl-l> scroll-right | 12 | bind generic <C-L> none |
13 | bind generic <C-L> scroll-right | ||
13 | 14 | ||
14 | # toggle/copy commit id | 15 | # toggle/copy commit id |
15 | bind generic o none | 16 | bind generic o none |
@@ -79,7 +80,7 @@ bind main P ?git push %(remote) %(branch):%(branch) | |||
79 | # reset/rebase/revert | 80 | # reset/rebase/revert |
80 | bind main u ?git reset %(commit) --soft | 81 | bind main u ?git reset %(commit) --soft |
81 | bind main U ?sh -c "git stash push -m 'deprecated from reset' && git reset %(commit) --hard" | 82 | bind main U ?sh -c "git stash push -m 'deprecated from reset' && git reset %(commit) --hard" |
82 | bind main <Ctrl-r> !?git rebase -i %(commit) | 83 | bind main <C-r> !?git rebase -i %(commit) |
83 | bind main ! ?git revert %(commit) | 84 | bind main ! ?git revert %(commit) |
84 | 85 | ||
85 | # tag | 86 | # tag |
@@ -96,7 +97,7 @@ bind main V @git log -S "%(prompt Enter search word: )" | |||
96 | 97 | ||
97 | # make patches | 98 | # make patches |
98 | bind main S ?>git format-patch -1 %(commit) | 99 | bind main S ?>git format-patch -1 %(commit) |
99 | bind main <Ctrl-s> ?>git format-patch %(commit) | 100 | bind main <C-s> ?>git format-patch %(commit) |
100 | 101 | ||
101 | # show diff based on revision | 102 | # show diff based on revision |
102 | bind main . >sh -c "git diff %(commit) | tig" | 103 | bind main . >sh -c "git diff %(commit) | tig" |
@@ -128,7 +129,7 @@ bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(fi | |||
128 | bind status Tu @git update-index --assume-unchanged %(file) | 129 | bind status Tu @git update-index --assume-unchanged %(file) |
129 | 130 | ||
130 | # apply patch file | 131 | # apply patch file |
131 | bind status <Ctrl-o> ?git am %(file) | 132 | bind status <C-o> ?git am %(file) |
132 | 133 | ||
133 | #==================== | 134 | #==================== |
134 | # stash view | 135 | # stash view |