Compare commits
2 Commits
1dad945ac6
...
d626e993d6
Author | SHA1 | Date | |
---|---|---|---|
d626e993d6 | |||
ae56510c16 |
@ -91,12 +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^ | \ # Show log refs
|
||||
grep -v "^$" | \ # Clear empty lines
|
||||
sed "s/, /\n/g" | \ # One ref by line
|
||||
grep -v "tag:[^,]*,*" | \ # Filter tag refs
|
||||
head -n1 | \ # Keep only the last
|
||||
sed "s/origin\/\([^,]*\)/\1/" # Local reference
|
||||
git log --pretty=format:"%D" HEAD^ | \
|
||||
grep -v "^$" | \
|
||||
sed "s/, /\n/g" | \
|
||||
grep -v "tag:[^,]*,*" | \
|
||||
head -n1 | \
|
||||
sed "s/origin\/\([^,]*\)/\1/"
|
||||
}
|
||||
|
||||
alias log='git log --graph --decorate --oneline'
|
||||
|
Loading…
x
Reference in New Issue
Block a user