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

Unified Diff: docs/src/demo_repo.sh

Issue 225433003: Add a basic tutorial for the tools in depot_tools. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@git_map
Patch Set: pylint Created 6 years, 8 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 | « docs/src/common_demo_functions.sh ('k') | docs/src/depot_tools_tutorial.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: docs/src/demo_repo.sh
diff --git a/docs/src/demo_repo.sh b/docs/src/demo_repo.sh
new file mode 100755
index 0000000000000000000000000000000000000000..a07a47ee8885d9a471bcfa8b1427e7f083325ada
--- /dev/null
+++ b/docs/src/demo_repo.sh
@@ -0,0 +1,43 @@
+#!/bin/bash
+
+. common_demo_functions.sh
+
+TDIR=$(mktemp --tmpdir -d demo_repo.XXXXXXXXXX)
+trap "rm -rf $TDIR" EXIT
+
+cd $TDIR
+silent git clone "$REMOTE" .
+silent git reset --hard stage_1
+silent git update-ref refs/remotes/origin/master stage_1
+silent git tag -d $(git tag -l 'stage_*')
+silent git checkout origin/master
+silent git branch -d master
+silent git config color.ui always
+
+if [[ ! "$BLANK_DEMO" ]]
+then
+ silent git new-branch cool_feature
+
+ c "Add widget"
+ c "Refactor spleen"
+ silent git tag spleen_tag
+
+ c "another improvement"
+
+ silent git new-branch --upstream_current subfeature
+ c "slick commenting action"
+ c "integrate with CoolService"
+
+ silent git checkout cool_feature
+ c "Respond to CL comments"
+
+ silent git new-branch fixit
+ c "Epic README update"
+ c "Add neat feature"
+
+ silent git new-branch --upstream_current frozen_branch
+ c "a deleted file"
+ c "modfile"
+ c "FREEZE.unindexed"
+fi
+
« no previous file with comments | « docs/src/common_demo_functions.sh ('k') | docs/src/depot_tools_tutorial.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698