Compare commits
2 Commits
d626e993d6
...
33ba8f5528
Author | SHA1 | Date | |
---|---|---|---|
33ba8f5528 | |||
49f02ee7a2 |
@ -91,11 +91,12 @@ alias branch_clean='git branch --merged | egrep -v "(^\*|master|dev)" | xargs gi
|
||||
alias tag_clean='git tag -l | xargs git tag -d && git fetch -t'
|
||||
|
||||
function git_parent {
|
||||
git log --pretty=format:"%D" HEAD^ | \
|
||||
grep -v "^$" | \
|
||||
sed "s/, /\n/g" | \
|
||||
grep -v "tag:[^,]*,*" | \
|
||||
head -n1 | \
|
||||
git log --pretty=format:"%D" HEAD^ | \
|
||||
grep -v "^$" | \
|
||||
grep -v `git rev-parse --abbrev-ref HEAD` | \
|
||||
sed "s/, /\n/g" | \
|
||||
grep -v "tag:[^,]*,*" | \
|
||||
head -n1 | \
|
||||
sed "s/origin\/\([^,]*\)/\1/"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user