diff options
author | typebrook <typebrook@gmail.com> | 2019-03-27 10:01:42 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-03-27 10:01:42 +0800 |
commit | a38f3b693643795f93faec80bf40235f7d1d5205 (patch) | |
tree | b63ab0db558ab86e8098615308ddd2d23e709d9d /tigrc | |
parent | 875767033d54b4e52d4009843a0cf4f9e176bbae (diff) |
update
Diffstat (limited to 'tigrc')
-rw-r--r-- | tigrc | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -26,19 +26,20 @@ bind generic 4 :source ~/.tigrc | |||
26 | bind generic L >sh -c "git reflog --pretty=raw | tig --pretty=raw" | 26 | bind generic L >sh -c "git reflog --pretty=raw | tig --pretty=raw" |
27 | bind generic ; ?git reset --hard HEAD@{"%(prompt Enter HEAD@{} number: )"} | 27 | bind generic ; ?git reset --hard HEAD@{"%(prompt Enter HEAD@{} number: )"} |
28 | 28 | ||
29 | set ignore-case = true | ||
30 | set line-graphics = utf-8 | ||
31 | set refresh-mode = after-command | ||
32 | |||
33 | # highlight diff without +/- | 29 | # highlight diff without +/- |
34 | set diff-show-signs = false | 30 | set diff-show-signs = false |
35 | set diff_column_highlight = ALL | 31 | set diff_column_highlight = ALL |
36 | 32 | ||
33 | # misc settings | ||
34 | set ignore-case = true | ||
35 | set line-graphics = utf-8 | ||
36 | set refresh-mode = auto | ||
37 | |||
37 | #==================== | 38 | #==================== |
38 | # main view | 39 | # main view |
39 | #==================== | 40 | #==================== |
40 | set main-view = \ | 41 | set 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 | |||
84 | bind main V @git log -S "%(prompt Enter search word: )" | 85 | bind main V @git log -S "%(prompt Enter search word: )" |
85 | 86 | ||
86 | # make patches | 87 | # make patches |
87 | bind main S !git format-patch -1 %(commit) | 88 | bind main S ?>git format-patch -1 %(commit) |
88 | bind main <Ctrl-s> !git format-patch %(commit) | 89 | bind main <Ctrl-s> ?>git format-patch %(commit) |
89 | 90 | ||
90 | # show diff based on revision | 91 | # show diff based on revision |
91 | bind main . >sh -c "git diff %(commit) | tig" | 92 | bind main . >sh -c "git diff %(commit) | tig" |
@@ -111,7 +112,7 @@ bind status c @git commit -m "%(prompt Enter commit message: )" | |||
111 | bind status C !git commit | 112 | bind status C !git commit |
112 | bind status a ?git commit --amend | 113 | bind status a ?git commit --amend |
113 | 114 | ||
114 | bind status D ?rm %(file) | 115 | bind status D ?>rm %(file) |
115 | 116 | ||
116 | bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\"" | 117 | bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\"" |
117 | bind status Tu @git update-index --assume-unchanged %(file) | 118 | bind status Tu @git update-index --assume-unchanged %(file) |