-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tigrc
28 lines (24 loc) · 976 Bytes
/
.tigrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Override the default terminal colors to white on black.
color default white black
color date yellow default
# View-specific color
color tree.date black cyan bold
# view
set blame-view = id:yes,color date:default author:email-user line-number:yes,interval=1 text
set main-view = id date:relative-compact author:email-user,maxwidth=16 commit-title:yes,graph,refs
set refs-view = id date:relative author:email-user ref commit-title
set blame-view-date-local = yes
set stash-view-date-local = yes
set tree-view-date-local = yes
# Vim-style keybindings for Tig
source ~/.tig/vim.tigrc
# git-svn
bind generic c none
bind main css ?git stash
bind main csk ?git stash -k
bind main csf !git svn fetch
bind main csr ?git svn rebase
bind main csp ?git svn dcommit
bind main csu !sh -c "git stash && git svn rebase && git stash pop"
bind main cscl !sh -c "git clean -fd && git svn mkdirs"
bind main csv !sh -c "git log -1|grep 'trunk@'|sed 's/.*trunk@\([0-9]*\).*/\1/'"