aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2019-03-19 22:52:09 +0800
committertypebrook <typebrook@gmail.com>2019-03-19 22:52:09 +0800
commit95ab29219e99bf04b5e64c916bf085db626b7f1b (patch)
tree30c44145c722d629e5a834d3fe618a2f75acfbc5
parent522f4f3a9dda1a8a4871243e6cec47cd7a5cc5ac (diff)
update
-rw-r--r--tigrc55
1 files changed, 31 insertions, 24 deletions
diff --git a/tigrc b/tigrc
index 453ccad..0d2f604 100644
--- a/tigrc
+++ b/tigrc
@@ -7,8 +7,8 @@ bind generic x :toggle id
7bind generic 9 !@sh -c "echo -n %(commit) | head -c7 | xclip -selection c" 7bind generic 9 !@sh -c "echo -n %(commit) | head -c7 | xclip -selection c"
8bind generic g none 8bind generic g none
9bind generic gg move-first-line 9bind generic gg move-first-line
10bind generic gr view-grep
11bind generic G move-last-line 10bind generic G move-last-line
11bind generic gr view-grep
12bind generic w :toggle ignore-case 12bind generic w :toggle ignore-case
13 13
14set ignore-case = true 14set ignore-case = true
@@ -16,54 +16,61 @@ set line-graphics = utf-8
16set refresh-mode = after-command 16set refresh-mode = after-command
17 17
18# main view 18# main view
19set main-view = \
20 date:default \
21 author:abbreviated \
22 id \
23 commit-title:graph=v2,refs=true
24
19bind main ` :toggle commit-title-graph 25bind main ` :toggle commit-title-graph
20bind main G move-last-line 26
27bind main b none
28bind main bn @git branch "%(prompt Enter branch name: )" %(commit)
29bind main bd @git branch -d "%(prompt Delete branch: )"
30bind main bD ?git branch -D "%(prompt Delete branch anyway: )"
31bind main bv +git branch -vv
21bind main c @sh -c "git branch --points-at=%(commit) | \ 32bind main c @sh -c "git branch --points-at=%(commit) | \
22 sed -n '/^*/ {n;p}' | \ 33 sed -n '/^*/ {n;p}' | \
23 (cat -; echo %(commit)) | \ 34 (cat -; echo %(commit)) | \
24 head -1 | \ 35 head -1 | \
25 xargs git checkout" 36 xargs git checkout"
37
38bind main m ?git merge %(commit)
39bind main M ?git merge %(commit) --no-ff
40bind main p ?git push
41
42bind main u ?git reset %(commit) --soft
43bind main gu ?git reset %(commit) --hard
44bind main <Ctrl-r> !?git rebase -i %(commit)
45
26bind main Tn @git tag "%(prompt Enter tag name: )" %(commit) 46bind main Tn @git tag "%(prompt Enter tag name: )" %(commit)
27bind main TN !git tag "%(prompt Enter tag name: )" %(commit) -a 47bind main TN !git tag "%(prompt Enter tag name: )" %(commit) -a
28bind main Td @git tag -d "%(prompt Delete tag: )" 48bind main Td @git tag -d "%(prompt Delete tag: )"
29bind main Tp ?git push --tags 49bind main Tp ?git push --tags
30bind main gdt @git tag -d %(tag) 50bind main gdt @git tag -d %(tag)
31bind main <Ctrl-r> !?git rebase -i %(commit) 51
32bind main m ?git merge %(commit)
33bind main M ?git merge %(commit) --no-ff
34bind main P ?git push
35bind main B !sh scripts/bump_version.sh 52bind main B !sh scripts/bump_version.sh
36bind main V @git log -S "%(prompt Enter search word: )" 53bind main V @git log -S "%(prompt Enter search word: )"
37bind main b none
38bind main bn @git branch "%(prompt Enter branch name: )" %(commit)
39bind main bd @git branch -d "%(prompt Delete branch: )"
40bind main bD ?git branch -D "%(prompt Delete branch anyway: )"
41bind main bv +git branch -vv
42bind main u ?git reset %(commit) --soft
43bind main gu ?git reset %(commit) --hard
44
45set main-view = \
46 date:default \
47 author:abbreviated \
48 id \
49 commit-title:graph=v2,refs=true
50 54
51# blame view 55# blame view
52set blame-view-file-name = no 56set blame-view-file-name = no
53set blame-view-line-number = yes,interval=5 57set blame-view-line-number = yes,interval=5
54 58
55# status view 59# status view
60bind status j :/^[MADRU?]
61bind status k :?^[MADRU?]
62
56bind status s ?git stash 63bind status s ?git stash
57bind status S @git stash save "%(prompt Enter stash name: )" 64bind status S @git stash save "%(prompt Enter stash name: )"
58bind status gs !git stash save -p "%(prompt Enter stash name: )" 65bind status gs !git stash save -p "%(prompt Enter stash name: )"
59bind status p !git checkout --patch -- %(file) 66bind status p !git checkout --patch -- %(file)
60bind status D ?rm %(file) 67bind status Tu @git update-index --assume-unchanged %(file)
61bind status a ?git commit --amend 68
62bind status c @git commit -m "%(prompt Enter commit message: )" 69bind status c @git commit -m "%(prompt Enter commit message: )"
63bind status C !git commit 70bind status C !git commit
64bind status j :/^[MADRU?] 71bind status a ?git commit --amend
65bind status k :?^[MADRU?] 72
66bind status Tu @git update-index --assume-unchanged "%(file)" 73bind status D ?rm %(file)
67 74
68# stash view 75# stash view
69bind stash D ?git stash drop %(stash) 76bind stash D ?git stash drop %(stash)