aboutsummaryrefslogtreecommitdiffhomepage
path: root/tigrc
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2019-03-29 15:37:21 +0800
committertypebrook <typebrook@gmail.com>2019-03-29 15:37:21 +0800
commit07f2a0e3bc42d5e182c46d334702cc8adee5f6db (patch)
treeea8f380c3a2a9f381e2b8790da1aa1a424caacdf /tigrc
parent432d9edfe492ccae60d439b2fba43fbfac619413 (diff)
update
Diffstat (limited to 'tigrc')
-rw-r--r--tigrc10
1 files changed, 7 insertions, 3 deletions
diff --git a/tigrc b/tigrc
index 74b37b4..f40c9e5 100644
--- a/tigrc
+++ b/tigrc
@@ -23,6 +23,10 @@ bind generic gr view-grep
23# toggle case sensitive for search 23# toggle case sensitive for search
24bind generic w :toggle ignore-case 24bind generic w :toggle ignore-case
25 25
26# override refresh
27bind generic R none
28bind generic <C-R> refresh
29
26# see reflog, reset refernece 30# see reflog, reset refernece
27bind generic L >sh -c "git reflog --pretty=raw | tig --pretty=raw" 31bind generic L >sh -c "git reflog --pretty=raw | tig --pretty=raw"
28bind generic ; ?git reset --hard HEAD@{"%(prompt Enter HEAD@{} number: )"} 32bind generic ; ?git reset --hard HEAD@{"%(prompt Enter HEAD@{} number: )"}
@@ -54,7 +58,7 @@ bind main b none
54bind main bn @git branch "%(prompt Enter branch name: )" %(commit) 58bind main bn @git branch "%(prompt Enter branch name: )" %(commit)
55bind main bd @git branch -d "%(prompt Delete branch: )" 59bind main bd @git branch -d "%(prompt Delete branch: )"
56bind main bD ?>git branch -D "%(prompt Delete branch anyway: )" 60bind main bD ?>git branch -D "%(prompt Delete branch anyway: )"
57bind main bv +sh -c "git branch -vv | grep '*'" 61bind main bv +sh -c "git branch -vv | grep %(branch)"
58bind main c @sh -c "git branch --points-at=%(commit) | \ 62bind main c @sh -c "git branch --points-at=%(commit) | \
59 sed -n '/^*/ {n;p}' | \ 63 sed -n '/^*/ {n;p}' | \
60 (cat -; echo %(commit)) | \ 64 (cat -; echo %(commit)) | \
@@ -77,7 +81,7 @@ bind main pP ?git push -u %(remote) %(branch):%(branch)
77# reset/rebase/revert 81# reset/rebase/revert
78bind main u ?git reset %(commit) 82bind main u ?git reset %(commit)
79bind main U ?sh -c "git reset %(commit) && git stash push -m 'deprecated from reset'" 83bind main U ?sh -c "git reset %(commit) && git stash push -m 'deprecated from reset'"
80bind main <C-r> !?git rebase -i %(commit) 84bind main R !?git rebase -i %(commit)
81bind main ! ?git revert %(commit) 85bind main ! ?git revert %(commit)
82 86
83# tag 87# tag
@@ -201,7 +205,7 @@ bind diff <Esc>p :?^diff --(git|cc)
201 205
202# edit tigrc 206# edit tigrc
203bind help e >sh -c "vim ~/.tigrc" 207bind help e >sh -c "vim ~/.tigrc"
204bind help R :source ~/.tigrc 208bind help <C-R> :source ~/.tigrc
205 209
206#==================== 210#====================
207# color 211# color