-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtigrc
More file actions
39 lines (36 loc) · 1.36 KB
/
Copy pathtigrc
File metadata and controls
39 lines (36 loc) · 1.36 KB
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
29
30
31
32
33
34
35
36
37
38
39
# VI key bindings
bind generic <Ctrl-f> move-page-down
bind generic <Ctrl-b> move-page-up
bind generic g none
bind main G none
bind generic G none
bind generic gg move-first-line
bind main G move-last-line
bind generic G move-last-line
# Customize display
set refresh-mode = auto
set tab-size = 4
set main-view = line-number:no,interval=5 id:no date:relative-compact author:abbreviated commit-title:yes,graph,refs,overflow=no
set refs-view = line-number:no id:no date:relative-compact author:abbreviated ref commit-title
# Key bindings
bind generic } @sh -c "git difftool -d %(commit)^ %(commit) &"
bind generic I @sh -c "echo -n %(commit) | xsel -ib"
bind main C @git checkout %(commit)
bind refs C @git checkout %(ref)
bind main P ?git cherry-pick %(commit)
# Show diffs
bind status } @git difftool -y %(commit) %(file)
# Drop/Apply the selected stash:
bind stash D !?git stash drop %(stash)
bind stash A !?git stash apply %(stash)
# Tag the selected commit
bind main T !@git tag %(prompt) %(commit)
# For big repo
# Use Git's default (reverse chronological) order, never automatically
set commit-order = default
# # Limit number of commits loaded by default to 1000
set main-options = -n 1000
# # Don't show staged and unstaged changes in the main view
set show-changes = no
# # Optionally, use the old and faster but less acurate graph renderer
# #set main-view-commit-title-graph = v1