diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2021-08-16 08:09:51 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2021-08-16 08:09:51 +0800 |
commit | 8797f603f95143ae92c153aba3943c6da59aeb02 (patch) | |
tree | 3278399d0c8c3b1babb86c9a4165d25ea28d5481 /tigrc | |
parent | 9efe33d2a5c28dec08521d5199e8e2b19da9ea9a (diff) |
update
Diffstat (limited to 'tigrc')
-rw-r--r-- | tigrc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -94,6 +94,7 @@ bind main 1 +sh -c "git rev-list --all --children | \ | |||
94 | grep '^%(commit)' | \ | 94 | grep '^%(commit)' | \ |
95 | awk '{print $2}') | \ | 95 | awk '{print $2}') | \ |
96 | xsel -ib && echo first children" # useless now | 96 | xsel -ib && echo first children" # useless now |
97 | bind main J @sh -c 'BRANCH=$(git branch --show-current) && git checkout %(commit) && git branch --force $BRANCH %(commit) && git checkout $BRANCH' | ||
97 | 98 | ||
98 | # branch | 99 | # branch |
99 | bind main b none | 100 | bind main b none |
@@ -228,6 +229,9 @@ bind blob m >tig --follow -- %(file) | |||
228 | bind status j :/^[MCADRUT?] | 229 | bind status j :/^[MCADRUT?] |
229 | bind status k :?^[MCADRUT?] | 230 | bind status k :?^[MCADRUT?] |
230 | 231 | ||
232 | # use vscode to edit a file | ||
233 | bind status E !>code %(file) | ||
234 | |||
231 | # update index | 235 | # update index |
232 | bind status A @git add . | 236 | bind status A @git add . |
233 | bind status R @git reset | 237 | bind status R @git reset |