diff options
author | typebrook <typebrook@gmail.com> | 2020-02-05 19:18:06 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-02-05 19:18:06 +0800 |
commit | 9fed53d721ef57e50847354361bdc3e563e96f09 (patch) | |
tree | 97f1c8ad8c9713f17825a2b09b9928c5f68105b8 | |
parent | c04bd9aaeb0198c5eff9f1f64278a8a52081cb97 (diff) |
update
-rw-r--r-- | alias | 1 | ||||
-rw-r--r-- | tigrc | 5 |
2 files changed, 4 insertions, 2 deletions
@@ -120,6 +120,7 @@ gcg() { | |||
120 | git clone git@github.com:$1/$2.git && cd $(basename $2) | 120 | git clone git@github.com:$1/$2.git && cd $(basename $2) |
121 | } | 121 | } |
122 | alias gls='git log -S' | 122 | alias gls='git log -S' |
123 | alias cdgw='cd .github/workflows' | ||
123 | alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule | 124 | alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule |
124 | github_release_asset() { | 125 | github_release_asset() { |
125 | command="upload-github-release-asset.sh\n github_api_token=$(cat ~/settings/tokens/github)\n owner=typebrook\n repo=tig\n tag=LATEST\n filename=$(which tig)\n overwrite=false" | 126 | command="upload-github-release-asset.sh\n github_api_token=$(cat ~/settings/tokens/github)\n owner=typebrook\n repo=tig\n tag=LATEST\n filename=$(which tig)\n overwrite=false" |
@@ -144,8 +144,9 @@ bind main pU ?git pull --rebase | |||
144 | bind main uu ?git reset %(commit) --soft | 144 | bind main uu ?git reset %(commit) --soft |
145 | bind main uh ?git reset %(commit) --hard | 145 | bind main uh ?git reset %(commit) --hard |
146 | bind main uS ?sh -c "git reset %(commit) && git stash push -m 'deprecated from reset'" # reset and stash the changes | 146 | bind main uS ?sh -c "git reset %(commit) && git stash push -m 'deprecated from reset'" # reset and stash the changes |
147 | bind main B !?git rebase --rebase-merges -i %(commit) | 147 | bind main B !?git rebase -i %(commit) |
148 | bind main gb !?git rebase --onto '%(prompt Rebase onto which branch? )' %(commit) %(repo:head) | 148 | bind main gb !?git rebase --onto '%(prompt Rebase onto which branch? )' %(commit) %(repo:head) |
149 | bind main gB !?git rebase --rebase-merges -i %(commit) | ||
149 | bind main ! ?git revert %(commit) | 150 | bind main ! ?git revert %(commit) |
150 | 151 | ||
151 | # tag | 152 | # tag |
@@ -186,7 +187,7 @@ bind main I >sh -c "hub issue | tig" | |||
186 | ## Statistics | 187 | ## Statistics |
187 | bind main gc >sh -c 'cloc --git %(commit) | tig' | 188 | bind main gc >sh -c 'cloc --git %(commit) | tig' |
188 | ## Script to bump Android version | 189 | ## Script to bump Android version |
189 | bind main <C-B> !sh scripts/bump_version.sh | 190 | bind main <C-B> ! scripts/bump_version.sh && scripts/whatsnew.sh |
190 | 191 | ||
191 | # note | 192 | # note |
192 | #bind generic gnn !git notes edit %(commit) | 193 | #bind generic gnn !git notes edit %(commit) |