增加git archive
This commit is contained in:
parent
5cf3605f68
commit
2bc4a0ded8
@ -102,3 +102,9 @@ function switchpy() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function gitarchive() {
|
||||||
|
first=`git log -1 --pretty=oneline | cut -d ' ' -f 1 | tail -n 1`
|
||||||
|
second=`git log -2 --pretty=oneline | cut -d ' ' -f 1 | tail -n 1`
|
||||||
|
git archive -o $1 $first $(git diff --name-only $second $first)
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user