aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2023-01-19 02:39:57 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-01-19 02:39:57 +0000
commitd0273a7b41b7450b8471f0e15704e3a62569a4e2 (patch)
treef4d0f567a9e92748ed7c700081f53d1f25063695
parenta425fd023fccc0efd8dc7bc2b6c313e9bf59f70d (diff)
parent581eae3a5d7a7a248f4e0a1bf1cb65728c02c82d (diff)
downloadlibvpx-d0273a7b41b7450b8471f0e15704e3a62569a4e2.tar.gz
Merge "update_libvpx.sh: remove unneeded commands"main-16k-with-phones
-rwxr-xr-xupdate_libvpx.sh54
1 files changed, 1 insertions, 53 deletions
diff --git a/update_libvpx.sh b/update_libvpx.sh
index cfbee1888..f3a19f706 100755
--- a/update_libvpx.sh
+++ b/update_libvpx.sh
@@ -62,16 +62,10 @@ else
fi
[ -z "$UPSTREAM_COMMIT" ] \
- && die "Unable to get upstream commit corresponding to ${GIT_BRANCH}";
+ && die "Unable to get upstream commit corresponding to ${GIT_BRANCH}";
-# Merge $GIT_BRANCH by allowing unrelated histories and squashing the changes
git merge $UPSTREAM_COMMIT
-add="$(git diff-index --diff-filter=A $prev_hash | \
-tr -s [:blank:] ' ' | cut -f6 -d\ )"
-delete="$(git diff-index --diff-filter=D $prev_hash | \
-tr -s [:blank:] ' ' | cut -f6 -d\ )"
-
# Get the current commit hash.
hash=$(git log $UPSTREAM_COMMIT -1 --format="%H")
@@ -84,52 +78,6 @@ echo "Commit: $hash"
echo "==============="
echo ""
-# Commit message header.
-echo "Commit message:"
-echo "==============="
-echo "libvpx: Pull from upstream"
-echo ""
-
-# Output the current commit hash.
-echo "Current HEAD: $hash"
-echo ""
-
-# Output log for upstream from current hash.
-if [ -n "$prev_hash" ]; then
- echo "git log from upstream:"
- pretty_git_log="$(git log $UPSTREAM_COMMIT \
- --no-merges \
- --topo-order \
- --pretty="%h %s" \
- --max-count=20 \
- $prev_hash..$hash)"
- if [ -z "$pretty_git_log" ]; then
- echo "No log found. Checking for reverts."
- pretty_git_log="$(git log $UPSTREAM_COMMIT \
- --no-merges \
- --topo-order \
- --pretty="%h %s" \
- --max-count=20 \
- $hash..$prev_hash)"
- fi
- echo "$pretty_git_log"
- # If it makes it to 20 then it's probably skipping even more.
- if [ `echo "$pretty_git_log" | wc -l` -eq 20 ]; then
- echo "<...>"
- fi
-fi
-
-# Commit message footer.
-echo ""
-echo "==============="
-
-# Add and remove files.
-echo "$add" | xargs -I {} git add {}
-echo "$delete" | xargs -I {} git rm --ignore-unmatch {}
-
-# Find empty directories and remove them.
-find . -type d -empty -exec git rm {} \;
-
# Remove the remote added earlier
git remote remove $REMOTE