diff options
| author | typebrook <typebrook@gmail.com> | 2019-05-02 16:51:32 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2019-05-02 16:51:32 +0800 |
| commit | baa590296e111f2553752a864feeebd512be3c25 (patch) | |
| tree | 45a466b8a1cdef706c679d77377127116e258979 | |
| parent | 4d516d3bc8ca75fd8f89ebbf67e326593c5e801b (diff) | |
update
| -rw-r--r-- | tigrc | 11 |
1 files changed, 5 insertions, 6 deletions
| @@ -29,8 +29,7 @@ bind generic gp view-grep | |||
| 29 | # toggle case sensitive for search | 29 | # toggle case sensitive for search |
| 30 | bind generic w :toggle ignore-case | 30 | bind generic w :toggle ignore-case |
| 31 | 31 | ||
| 32 | # override refresh | 32 | # refresh like modern browser |
| 33 | bind generic R none | ||
| 34 | bind generic <C-R> refresh | 33 | bind generic <C-R> refresh |
| 35 | 34 | ||
| 36 | # see reflog, reset refernece | 35 | # see reflog, reset refernece |
| @@ -70,6 +69,7 @@ bind main ; :goto %(commit)^2 | |||
| 70 | bind main b none | 69 | bind main b none |
| 71 | bind main bn @git branch "%(prompt Enter branch name: )" %(commit) | 70 | bind main bn @git branch "%(prompt Enter branch name: )" %(commit) |
| 72 | bind main bN @git branch "%(prompt Enter branch name: )" --track %(remote)/%(branch) | 71 | bind main bN @git branch "%(prompt Enter branch name: )" --track %(remote)/%(branch) |
| 72 | bind main bc @git checkout -b "%(prompt Checkout at new branch: )" %(commit) | ||
| 73 | bind main bd @git branch -d "%(prompt Delete branch: )" | 73 | bind main bd @git branch -d "%(prompt Delete branch: )" |
| 74 | bind main bbd @git branch -d %(branch) | 74 | bind main bbd @git branch -d %(branch) |
| 75 | bind main bD ?>git branch -D "%(prompt Delete branch anyway: )" | 75 | bind main bD ?>git branch -D "%(prompt Delete branch anyway: )" |
| @@ -80,7 +80,6 @@ bind main c @sh -c "git branch --points-at=%(commit) | \ | |||
| 80 | (cat -; echo %(commit)) | \ | 80 | (cat -; echo %(commit)) | \ |
| 81 | head -1 | \ | 81 | head -1 | \ |
| 82 | xargs git checkout" | 82 | xargs git checkout" |
| 83 | bind main B @git checkout -b "%(prompt Enter branch name: )" %(commit) | ||
| 84 | 83 | ||
| 85 | # commit | 84 | # commit |
| 86 | bind main a ?>git commit --amend | 85 | bind main a ?>git commit --amend |
| @@ -111,7 +110,7 @@ bind main pU ?git pull '%(prompt Which remote? )' %(branch):%(branch) | |||
| 111 | bind main uu ?git reset %(commit) | 110 | bind main uu ?git reset %(commit) |
| 112 | bind main us ?sh -c "git reset %(commit) && git stash push -m 'deprecated from reset'" | 111 | bind main us ?sh -c "git reset %(commit) && git stash push -m 'deprecated from reset'" |
| 113 | bind main uh ?git reset %(commit) --hard | 112 | bind main uh ?git reset %(commit) --hard |
| 114 | bind main R !?git rebase -i %(commit) | 113 | bind main B !?git rebase -i %(commit) |
| 115 | bind main ! ?git revert %(commit) | 114 | bind main ! ?git revert %(commit) |
| 116 | 115 | ||
| 117 | # tag | 116 | # tag |
| @@ -181,8 +180,8 @@ bind status d ?>rm %(file) | |||
| 181 | # solve conflict | 180 | # solve conflict |
| 182 | bind status U ?>git reset --hard | 181 | bind status U ?>git reset --hard |
| 183 | bind status gc @git clean -f | 182 | bind status gc @git clean -f |
| 184 | bind status Ra @git rebase --abort | 183 | bind status Ba @git rebase --abort |
| 185 | bind status Rc @git rebase --continue | 184 | bind status Bc @git rebase --continue |
| 186 | bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\"" | 185 | bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\"" |
| 187 | bind status Tu @git update-index --assume-unchanged %(file) | 186 | bind status Tu @git update-index --assume-unchanged %(file) |
| 188 | 187 | ||