andreagalle / .galledanza

User defined commands & env preferences to feel at Home Everywhere
MIT License
1 stars 0 forks source link

cases update & backport to pigcasso - automation #28

Open andreagalle opened 3 years ago

andreagalle commented 3 years ago

implement the following command to automatically update the current case:

git commit -m "cases update - $(basename $(dirname "$PWD"))"

something similar could be found to automate the following (back porting to pigcasso):

git stash ; wrk_branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
git checkout oink
git pull pigcasso backport
git cherry-pick -x --strategy=subtree $wrk_branch && git show HEAD --stat
git push pigcasso oink:backport
git checkout $wrk_branch && git stash apply