Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(466)

Unified Diff: update_libvpx.sh

Issue 993123002: Generate the commit message (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: update_libvpx.sh
diff --git a/update_libvpx.sh b/update_libvpx.sh
index e0657d77b38e0e6a9a3a6530561ebb52f07a7850..c1c7d6645e7671517d9260f7520e6cd340b1eadb 100755
--- a/update_libvpx.sh
+++ b/update_libvpx.sh
@@ -55,9 +55,27 @@ tr -s [:blank:] ' ' | cut -f6 -d\ )"
delete="$(git diff-index --diff-filter=D $prev_hash | \
tr -s [:blank:] ' ' | cut -f6 -d\ )"
-# Output the current commit hash.
+# Get the current commit hash.
hash=$(git log -1 --format="%H")
+
+# README reminder.
+echo "Update README.chromium:"
+echo "==============="
+echo "Date: $(date +"%A %B %d %Y")"
+echo "Branch: master"
+echo "Commit: $hash"
+echo "==============="
+echo ""
+
+# Commit message header.
+echo "Commit message:"
+echo "==============="
+echo "libvpx: Pull from upstream"
+echo ""
+
Tom Finegan 2015/03/10 22:32:05 could have been a heredoc: cat << EOF everything
+# Output the current commit hash.
echo "Current HEAD: $hash"
+echo ""
# Output log for upstream from current hash.
if [ -n "$prev_hash" ]; then
@@ -66,6 +84,7 @@ if [ -n "$prev_hash" ]; then
--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."
@@ -73,11 +92,21 @@ if [ -n "$prev_hash" ]; then
--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 "TBR=tomfinegan@chromium.org"
Tom Finegan 2015/03/10 22:32:05 lol
+echo "==============="
+
# Git is useless now, remove the local git repo.
rm -rf .git
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698