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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env bash
2 . git-drover.demo.common.sh
3
4 echo "# Make sure we have the most up-to-date branch sources."
5 run git fetch
6 echo
7 echo "# Checkout the branch with the change we want to revert."
8 run git checkout -b drover_9999 branch-heads/9999
9 echo
10 drover_c "This change is horribly broken."
11 echo "# Here's the commit we want to revert."
12 run git log -n 1
13 echo
14 echo "# Now do the revert."
15 silent git revert --no-edit $(git show-ref -s pick_commit)
16 pcommand git revert $(git show-ref -s pick_commit)
17 echo
18 echo "# That reverted the change and committed the revert."
19 run git log -n 1
20 echo
21 echo "# As with old drover, reverts are generally OK to commit without LGTM."
22 pcommand git cl upload -r some.committer@chromium.org --send-mail
23 run git cl land --bypass-hooks
OLDNEW
« 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