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

Unified Diff: man/src/git-drover.demo.2.sh

Issue 549643002: Add 'revert' example to git-drover docs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: formatting tweaks Created 6 years, 3 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 | « man/src/git-drover.demo.1.sh ('k') | man/src/git-drover.demo.common.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: man/src/git-drover.demo.2.sh
diff --git a/man/src/git-drover.demo.2.sh b/man/src/git-drover.demo.2.sh
new file mode 100755
index 0000000000000000000000000000000000000000..dcd07e4511f156e2efba442fe5ccbb5579dd63c4
--- /dev/null
+++ b/man/src/git-drover.demo.2.sh
@@ -0,0 +1,23 @@
+#!/usr/bin/env bash
+. git-drover.demo.common.sh
+
+echo "# Make sure we have the most up-to-date branch sources."
+run git fetch
+echo
+echo "# Checkout the branch with the change we want to revert."
+run git checkout -b drover_9999 branch-heads/9999
+echo
+drover_c "This change is horribly broken."
+echo "# Here's the commit we want to revert."
+run git log -n 1
+echo
+echo "# Now do the revert."
+silent git revert --no-edit $(git show-ref -s pick_commit)
+pcommand git revert $(git show-ref -s pick_commit)
+echo
+echo "# That reverted the change and committed the revert."
+run git log -n 1
+echo
+echo "# As with old drover, reverts are generally OK to commit without LGTM."
+pcommand git cl upload -r some.committer@chromium.org --send-mail
+run git cl land --bypass-hooks
« no previous file with comments | « man/src/git-drover.demo.1.sh ('k') | man/src/git-drover.demo.common.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698