mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 12:48:01 +00:00
Move git_stash function to zprezto
This commit is contained in:
parent
daebb9d33a
commit
d43545b427
16
.zshrc
16
.zshrc
@ -71,22 +71,6 @@ kexec () {
|
||||
[ -n "$cid" ] && kubectl exec -ti "$cid" -- "${cmd[@]}"
|
||||
}
|
||||
|
||||
# "dirty" squash before merge
|
||||
git_squash () {
|
||||
if [ -z $2 ]; then
|
||||
echo "Usage: $0 <base branch> \"commit message\""
|
||||
return 1
|
||||
fi
|
||||
|
||||
local bbranch=$1
|
||||
local message=$2
|
||||
local cbranch=$(git branch --show-current)
|
||||
|
||||
git reset $(git merge-base $bbranch $cbranch)
|
||||
git add -A
|
||||
git commit -m "$message"
|
||||
}
|
||||
|
||||
##### tilix #####
|
||||
|
||||
if [ $TILIX_ID ] || [ $VTE_VERSION ] ; then
|
||||
|
Loading…
Reference in New Issue
Block a user