Skip to content

Commit a2d5d76

Browse files
committed
allow for commit reverts
1 parent 843f5e2 commit a2d5d76

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/upstreamCommit.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ PS1="$"
55

66
function changelog() {
77
base=$(git ls-tree HEAD $1 | cut -d' ' -f3 | cut -f1)
8-
cd $1 && git log --oneline ${base}..HEAD -- patches/api
8+
current=$(cd $1 && git rev-parse HEAD)
9+
msg=$(cd $1 && git --no-pager log --oneline ${base}..${current})
10+
echo ${msg:-"Reverting from ${base} to ${current}"}
911
}
1012
paper=$(changelog work/Paper)
1113

0 commit comments

Comments
 (0)