diff options
| author | typebrook <typebrook@gmail.com> | 2019-08-28 11:18:03 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2019-08-28 11:18:03 +0800 |
| commit | 5f8376c5429f7d9400b00183267fb69146485fc1 (patch) | |
| tree | 1bcf711a668778f79c40e20732d838fe316794aa /tigrc | |
| parent | 3f9e14b7629f030bc6f249bcc124ce0a19e33175 (diff) | |
update
Diffstat (limited to 'tigrc')
| -rw-r--r-- | tigrc | 12 |
1 files changed, 10 insertions, 2 deletions
| @@ -167,11 +167,15 @@ bind main I >sh -c "hub issue | tig" | |||
| 167 | 167 | ||
| 168 | # Misc | 168 | # Misc |
| 169 | ## Statistics | 169 | ## Statistics |
| 170 | bind main gc !sh -c 'cloc --git %(commit) | tig' | 170 | bind main gc >sh -c 'cloc --git %(commit) | tig' |
| 171 | ## Script to bump Android version | 171 | ## Script to bump Android version |
| 172 | bind main <C-B> !sh scripts/bump_version.sh | 172 | bind main <C-B> !sh scripts/bump_version.sh |
| 173 | ## Remote | 173 | ## Remote |
| 174 | bind main gr +sh -c "git remote -v | grep %(remote)" | 174 | bind main Uv +sh -c "git remote -v | grep %(remote)" |
| 175 | bind main UV >sh -c "git remote -vv | tig" | ||
| 176 | bind main Ua @git remote add "%(prompt New remote name: )" "%(prompt Remote url: )" | ||
| 177 | bind main U! @git remote remove "%(prompt Remove which remote?: )" | ||
| 178 | bind main Us @git remote set-url "%(prompt Set url for which remote?: )" "%(prompt New url: )" | ||
| 175 | 179 | ||
| 176 | # note | 180 | # note |
| 177 | #bind generic gnn !git notes edit %(commit) | 181 | #bind generic gnn !git notes edit %(commit) |
| @@ -197,6 +201,10 @@ bind blob m >tig -- %(file) | |||
| 197 | bind status j :/^[MADRU?] | 201 | bind status j :/^[MADRU?] |
| 198 | bind status k :?^[MADRU?] | 202 | bind status k :?^[MADRU?] |
| 199 | 203 | ||
| 204 | # quick stage | ||
| 205 | bind status A @git add . | ||
| 206 | bind status R @git rm --cached . | ||
| 207 | |||
| 200 | # stash | 208 | # stash |
| 201 | bind status s ?>git stash | 209 | bind status s ?>git stash |
| 202 | bind status S @git stash push -m "%(prompt Enter stash name: )" | 210 | bind status S @git stash push -m "%(prompt Enter stash name: )" |