diff options
author | typebrook <typebrook@gmail.com> | 2019-03-25 15:11:50 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-03-25 15:11:50 +0800 |
commit | 7d328186d98fe2d4a941d4a1a3d3cf1c3ae00bef (patch) | |
tree | 0f4fce7f988da94fe324b1c5be823df011696b42 | |
parent | 7d372a2151e7b6e3f32f694866ee59d5b279eb8a (diff) |
update
-rw-r--r-- | tigrc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -28,7 +28,7 @@ bind main b none | |||
28 | bind main bn @git branch "%(prompt Enter branch name: )" %(commit) | 28 | bind main bn @git branch "%(prompt Enter branch name: )" %(commit) |
29 | bind main bd @git branch -d "%(prompt Delete branch: )" | 29 | bind main bd @git branch -d "%(prompt Delete branch: )" |
30 | bind main bD ?git branch -D "%(prompt Delete branch anyway: )" | 30 | bind main bD ?git branch -D "%(prompt Delete branch anyway: )" |
31 | bind main bv +git branch -vv | 31 | bind main bv +sh -c "git branch -vv | grep '*'" |
32 | bind main c @sh -c "git branch --points-at=%(commit) | \ | 32 | bind main c @sh -c "git branch --points-at=%(commit) | \ |
33 | sed -n '/^*/ {n;p}' | \ | 33 | sed -n '/^*/ {n;p}' | \ |
34 | (cat -; echo %(commit)) | \ | 34 | (cat -; echo %(commit)) | \ |
@@ -36,8 +36,9 @@ bind main c @sh -c "git branch --points-at=%(commit) | \ | |||
36 | xargs git checkout" | 36 | xargs git checkout" |
37 | 37 | ||
38 | bind main m ?git merge %(commit) | 38 | bind main m ?git merge %(commit) |
39 | bind main M ?git merge %(commit) --no-ff | 39 | bind main M ?git merge %(branch) --no-ff |
40 | bind main p ?git push | 40 | bind main p ?git push |
41 | bind main P ?git push %(remote) %(branch):%(branch) | ||
41 | 42 | ||
42 | bind main u ?git reset %(commit) --soft | 43 | bind main u ?git reset %(commit) --soft |
43 | bind main gu ?git reset %(commit) --hard | 44 | bind main gu ?git reset %(commit) --hard |
@@ -76,6 +77,7 @@ bind stash a ?git stash apply %(stash) | |||
76 | 77 | ||
77 | # tree view | 78 | # tree view |
78 | bind tree d ?rm %(file) | 79 | bind tree d ?rm %(file) |
80 | bind tree 3 !@sh -c "echo -n %(file) | xclip -selection c" | ||
79 | bind tree 9 !@sh -c "echo -n %(blob) | head -c7 | xclip -selection c" | 81 | bind tree 9 !@sh -c "echo -n %(blob) | head -c7 | xclip -selection c" |
80 | 82 | ||
81 | # refs view | 83 | # refs view |