aboutsummaryrefslogtreecommitdiffhomepage
path: root/tigrc
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2019-03-27 10:01:42 +0800
committertypebrook <typebrook@gmail.com>2019-03-27 10:01:42 +0800
commita38f3b693643795f93faec80bf40235f7d1d5205 (patch)
treeb63ab0db558ab86e8098615308ddd2d23e709d9d /tigrc
parent875767033d54b4e52d4009843a0cf4f9e176bbae (diff)
update
Diffstat (limited to 'tigrc')
-rw-r--r--tigrc17
1 files changed, 9 insertions, 8 deletions
diff --git a/tigrc b/tigrc
index 953fa2c..e888fc0 100644
--- a/tigrc
+++ b/tigrc
@@ -26,19 +26,20 @@ bind generic 4 :source ~/.tigrc
26bind generic L >sh -c "git reflog --pretty=raw | tig --pretty=raw" 26bind generic L >sh -c "git reflog --pretty=raw | tig --pretty=raw"
27bind generic ; ?git reset --hard HEAD@{"%(prompt Enter HEAD@{} number: )"} 27bind generic ; ?git reset --hard HEAD@{"%(prompt Enter HEAD@{} number: )"}
28 28
29set ignore-case = true
30set line-graphics = utf-8
31set refresh-mode = after-command
32
33# highlight diff without +/- 29# highlight diff without +/-
34set diff-show-signs = false 30set diff-show-signs = false
35set diff_column_highlight = ALL 31set diff_column_highlight = ALL
36 32
33# misc settings
34set ignore-case = true
35set line-graphics = utf-8
36set refresh-mode = auto
37
37#==================== 38#====================
38# main view 39# main view
39#==================== 40#====================
40set main-view = \ 41set main-view = \
41 date:default \ 42 date:relative \
42 author:abbreviated \ 43 author:abbreviated \
43 id \ 44 id \
44 commit-title:graph=v2,refs=true 45 commit-title:graph=v2,refs=true
@@ -84,8 +85,8 @@ bind main B !sh scripts/bump_version.sh
84bind main V @git log -S "%(prompt Enter search word: )" 85bind main V @git log -S "%(prompt Enter search word: )"
85 86
86# make patches 87# make patches
87bind main S !git format-patch -1 %(commit) 88bind main S ?>git format-patch -1 %(commit)
88bind main <Ctrl-s> !git format-patch %(commit) 89bind main <Ctrl-s> ?>git format-patch %(commit)
89 90
90# show diff based on revision 91# show diff based on revision
91bind main . >sh -c "git diff %(commit) | tig" 92bind main . >sh -c "git diff %(commit) | tig"
@@ -111,7 +112,7 @@ bind status c @git commit -m "%(prompt Enter commit message: )"
111bind status C !git commit 112bind status C !git commit
112bind status a ?git commit --amend 113bind status a ?git commit --amend
113 114
114bind status D ?rm %(file) 115bind status D ?>rm %(file)
115 116
116bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\"" 117bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\""
117bind status Tu @git update-index --assume-unchanged %(file) 118bind status Tu @git update-index --assume-unchanged %(file)