diff options
author | typebrook <typebrook@gmail.com> | 2019-08-14 17:49:19 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-08-14 17:49:19 +0800 |
commit | fb43491d084fbdcbc82ab7cc93b9cce0e37aa15b (patch) | |
tree | 0a30ea27c3748d255d2211f449f92ef0b7c2c21d /tigrc | |
parent | 0c3ef7b6056f3e29f7a61bf695c4c7af1c53534e (diff) |
update
Diffstat (limited to 'tigrc')
-rw-r--r-- | tigrc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -72,6 +72,7 @@ bind main <C-J> :move-next-merge | |||
72 | bind main <C-K> :move-prev-merge | 72 | bind main <C-K> :move-prev-merge |
73 | bind main gh :goto HEAD | 73 | bind main gh :goto HEAD |
74 | bind main ; :goto %(commit)^2 # go to second parent | 74 | bind main ; :goto %(commit)^2 # go to second parent |
75 | bind main 1 :goto $(git rev-list --all --children | grep "^%(commit)" | awk '{print $2}') | ||
75 | 76 | ||
76 | # branch | 77 | # branch |
77 | bind main b none | 78 | bind main b none |
@@ -135,6 +136,7 @@ bind main Tn @git tag "%(prompt Enter tag name: )" %(commit) | |||
135 | bind main TN !git tag "%(prompt Enter tag name: )" %(commit) -a | 136 | bind main TN !git tag "%(prompt Enter tag name: )" %(commit) -a |
136 | bind main Tm @sh -c 'git tag -d %(tag) && git tag "%(prompt Enter tag name: )" %(commit)' | 137 | bind main Tm @sh -c 'git tag -d %(tag) && git tag "%(prompt Enter tag name: )" %(commit)' |
137 | bind main TM @sh -c 'git cat-file -p %(tag) | sed -n \'6,$p\' | git tag -a -F - "%(prompt Enter tag name: )" && git tag -d %(tag)' | 138 | bind main TM @sh -c 'git cat-file -p %(tag) | sed -n \'6,$p\' | git tag -a -F - "%(prompt Enter tag name: )" && git tag -d %(tag)' |
139 | bind main Tc !git tag %(tag) %(tag)^{} -f -m "%(prompt Enter new content: )" | ||
138 | bind main Ts >tig show %(tag) | 140 | bind main Ts >tig show %(tag) |
139 | bind main Td @git tag -d "%(prompt Delete tag: )" | 141 | bind main Td @git tag -d "%(prompt Delete tag: )" |
140 | bind main pt ?git push %(remote) %(tag) | 142 | bind main pt ?git push %(remote) %(tag) |
@@ -220,6 +222,7 @@ bind status <C-O> ?git am %(file) | |||
220 | bind stash a ?git stash apply %(stash) | 222 | bind stash a ?git stash apply %(stash) |
221 | bind stash d ?>git stash drop %(stash) | 223 | bind stash d ?>git stash drop %(stash) |
222 | bind stash p ?>git stash pop %(stash) | 224 | bind stash p ?>git stash pop %(stash) |
225 | bind stash i +git rev-parse %(stash) | ||
223 | 226 | ||
224 | # rename a stash | 227 | # rename a stash |
225 | bind stash n @sh -c "git stash drop %(stash) | \ | 228 | bind stash n @sh -c "git stash drop %(stash) | \ |