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

Unified Diff: man/src/git-drover.demo.common.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.2.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: man/src/git-drover.demo.common.sh
diff --git a/man/src/git-drover.demo.common.sh b/man/src/git-drover.demo.common.sh
new file mode 100755
index 0000000000000000000000000000000000000000..006e99de2bdcdfeefdbd9df710ec81365162389b
--- /dev/null
+++ b/man/src/git-drover.demo.common.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+. demo_repo.sh
+
+# Add and tag a dummy commit to refer to later.
+drover_c() {
+ add modified_file
+ set_user some.committer
+ c "$1"
+ silent git tag -f pick_commit
+ set_user branch.maintainer
+ tick 1000
+}
+
+silent git push origin refs/remotes/origin/master:refs/branch-heads/9999
+silent git config --add remote.origin.fetch \
+ +refs/branch-heads/*:refs/remotes/branch-heads/*
+silent git fetch origin
+
+silent git checkout -B master origin/master
« no previous file with comments | « man/src/git-drover.demo.2.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698