summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-02-05 19:18:06 +0800
committertypebrook <typebrook@gmail.com>2020-02-05 19:18:06 +0800
commit9fed53d721ef57e50847354361bdc3e563e96f09 (patch)
tree97f1c8ad8c9713f17825a2b09b9928c5f68105b8
parentc04bd9aaeb0198c5eff9f1f64278a8a52081cb97 (diff)
update
-rw-r--r--alias1
-rw-r--r--tigrc5
2 files changed, 4 insertions, 2 deletions
diff --git a/alias b/alias
index f4b23c9..343cea0 100644
--- a/alias
+++ b/alias
@@ -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}
122alias gls='git log -S' 122alias gls='git log -S'
123alias cdgw='cd .github/workflows'
123alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule 124alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule
124github_release_asset() { 125github_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"
diff --git a/tigrc b/tigrc
index 35e4af4..a546ba1 100644
--- a/tigrc
+++ b/tigrc
@@ -144,8 +144,9 @@ bind main pU ?git pull --rebase
144bind main uu ?git reset %(commit) --soft 144bind main uu ?git reset %(commit) --soft
145bind main uh ?git reset %(commit) --hard 145bind main uh ?git reset %(commit) --hard
146bind main uS ?sh -c "git reset %(commit) && git stash push -m 'deprecated from reset'" # reset and stash the changes 146bind main uS ?sh -c "git reset %(commit) && git stash push -m 'deprecated from reset'" # reset and stash the changes
147bind main B !?git rebase --rebase-merges -i %(commit) 147bind main B !?git rebase -i %(commit)
148bind main gb !?git rebase --onto '%(prompt Rebase onto which branch? )' %(commit) %(repo:head) 148bind main gb !?git rebase --onto '%(prompt Rebase onto which branch? )' %(commit) %(repo:head)
149bind main gB !?git rebase --rebase-merges -i %(commit)
149bind main ! ?git revert %(commit) 150bind 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
187bind main gc >sh -c 'cloc --git %(commit) | tig' 188bind main gc >sh -c 'cloc --git %(commit) | tig'
188## Script to bump Android version 189## Script to bump Android version
189bind main <C-B> !sh scripts/bump_version.sh 190bind 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)