aboutsummaryrefslogtreecommitdiffhomepage
path: root/tigrc
diff options
context:
space:
mode:
Diffstat (limited to 'tigrc')
-rw-r--r--tigrc11
1 files changed, 6 insertions, 5 deletions
diff --git a/tigrc b/tigrc
index 2c6a224..75c2ae4 100644
--- a/tigrc
+++ b/tigrc
@@ -8,8 +8,9 @@
8bind generic g none 8bind generic g none
9bind generic gg move-first-line 9bind generic gg move-first-line
10bind generic G move-last-line 10bind generic G move-last-line
11bind generic <Ctrl-h> scroll-left 11bind generic <C-h> scroll-left
12bind generic <Ctrl-l> scroll-right 12bind generic <C-L> none
13bind generic <C-L> scroll-right
13 14
14# toggle/copy commit id 15# toggle/copy commit id
15bind generic o none 16bind generic o none
@@ -79,7 +80,7 @@ bind main P ?git push %(remote) %(branch):%(branch)
79# reset/rebase/revert 80# reset/rebase/revert
80bind main u ?git reset %(commit) --soft 81bind main u ?git reset %(commit) --soft
81bind main U ?sh -c "git stash push -m 'deprecated from reset' && git reset %(commit) --hard" 82bind main U ?sh -c "git stash push -m 'deprecated from reset' && git reset %(commit) --hard"
82bind main <Ctrl-r> !?git rebase -i %(commit) 83bind main <C-r> !?git rebase -i %(commit)
83bind main ! ?git revert %(commit) 84bind main ! ?git revert %(commit)
84 85
85# tag 86# tag
@@ -96,7 +97,7 @@ bind main V @git log -S "%(prompt Enter search word: )"
96 97
97# make patches 98# make patches
98bind main S ?>git format-patch -1 %(commit) 99bind main S ?>git format-patch -1 %(commit)
99bind main <Ctrl-s> ?>git format-patch %(commit) 100bind main <C-s> ?>git format-patch %(commit)
100 101
101# show diff based on revision 102# show diff based on revision
102bind main . >sh -c "git diff %(commit) | tig" 103bind main . >sh -c "git diff %(commit) | tig"
@@ -128,7 +129,7 @@ bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(fi
128bind status Tu @git update-index --assume-unchanged %(file) 129bind status Tu @git update-index --assume-unchanged %(file)
129 130
130# apply patch file 131# apply patch file
131bind status <Ctrl-o> ?git am %(file) 132bind status <C-o> ?git am %(file)
132 133
133#==================== 134#====================
134# stash view 135# stash view