summaryrefslogtreecommitdiffhomepage
path: root/tigrc
diff options
context:
space:
mode:
Diffstat (limited to 'tigrc')
-rw-r--r--tigrc11
1 files changed, 5 insertions, 6 deletions
diff --git a/tigrc b/tigrc
index 98c8cf2..a486093 100644
--- a/tigrc
+++ b/tigrc
@@ -29,8 +29,7 @@ bind generic gp view-grep
29# toggle case sensitive for search 29# toggle case sensitive for search
30bind generic w :toggle ignore-case 30bind generic w :toggle ignore-case
31 31
32# override refresh 32# refresh like modern browser
33bind generic R none
34bind generic <C-R> refresh 33bind 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
70bind main b none 69bind main b none
71bind main bn @git branch "%(prompt Enter branch name: )" %(commit) 70bind main bn @git branch "%(prompt Enter branch name: )" %(commit)
72bind main bN @git branch "%(prompt Enter branch name: )" --track %(remote)/%(branch) 71bind main bN @git branch "%(prompt Enter branch name: )" --track %(remote)/%(branch)
72bind main bc @git checkout -b "%(prompt Checkout at new branch: )" %(commit)
73bind main bd @git branch -d "%(prompt Delete branch: )" 73bind main bd @git branch -d "%(prompt Delete branch: )"
74bind main bbd @git branch -d %(branch) 74bind main bbd @git branch -d %(branch)
75bind main bD ?>git branch -D "%(prompt Delete branch anyway: )" 75bind 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"
83bind main B @git checkout -b "%(prompt Enter branch name: )" %(commit)
84 83
85# commit 84# commit
86bind main a ?>git commit --amend 85bind main a ?>git commit --amend
@@ -111,7 +110,7 @@ bind main pU ?git pull '%(prompt Which remote? )' %(branch):%(branch)
111bind main uu ?git reset %(commit) 110bind main uu ?git reset %(commit)
112bind main us ?sh -c "git reset %(commit) && git stash push -m 'deprecated from reset'" 111bind main us ?sh -c "git reset %(commit) && git stash push -m 'deprecated from reset'"
113bind main uh ?git reset %(commit) --hard 112bind main uh ?git reset %(commit) --hard
114bind main R !?git rebase -i %(commit) 113bind main B !?git rebase -i %(commit)
115bind main ! ?git revert %(commit) 114bind 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
182bind status U ?>git reset --hard 181bind status U ?>git reset --hard
183bind status gc @git clean -f 182bind status gc @git clean -f
184bind status Ra @git rebase --abort 183bind status Ba @git rebase --abort
185bind status Rc @git rebase --continue 184bind status Bc @git rebase --continue
186bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\"" 185bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\""
187bind status Tu @git update-index --assume-unchanged %(file) 186bind status Tu @git update-index --assume-unchanged %(file)
188 187