Compare commits
2 Commits
33ba8f5528
...
d626e993d6
Author | SHA1 | Date | |
---|---|---|---|
d626e993d6 | |||
ae56510c16 |
@ -91,12 +91,11 @@ 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 "^$" | \
|
||||
grep -v `git rev-parse --abbrev-ref HEAD` | \
|
||||
sed "s/, /\n/g" | \
|
||||
grep -v "tag:[^,]*,*" | \
|
||||
head -n1 | \
|
||||
git log --pretty=format:"%D" HEAD^ | \
|
||||
grep -v "^$" | \
|
||||
sed "s/, /\n/g" | \
|
||||
grep -v "tag:[^,]*,*" | \
|
||||
head -n1 | \
|
||||
sed "s/origin\/\([^,]*\)/\1/"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user