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

Unified Diff: docs/src/git-new-branch.txt

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/git-nav-upstream.demo.1.sh ('k') | docs/src/git-new-branch.demo.1.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: docs/src/git-new-branch.txt
diff --git a/docs/src/git-new-branch.txt b/docs/src/git-new-branch.txt
index b8cc285ccf26ddb152d7cdf460bd2ab70ec0aa3a..a9f104f399171d23fc55b10fc581beadd73fce2d 100644
--- a/docs/src/git-new-branch.txt
+++ b/docs/src/git-new-branch.txt
@@ -56,42 +56,10 @@ defaults to 'origin/master'. This is considered to be the 'root' branch.
EXAMPLE
-------
+demo:1[]
-[subs="specialcharacters,quotes,attributes,callouts"]
-----
-[white]**$ git map-branches**
-[red]#origin/master#
- [green]#cool_feature#
- [green]#subfeature#
- [aqua]#frozen_changes *#
-[white]**$ git new-branch independent_cl**
-[white]**$ git map-branches**
-[red]#origin/master#
- [green]#cool_feature#
- [green]#subfeature#
- [green]#frozen_changes#
- [aqua]#independent_cl *#
-[white]**$ git new-branch --upstream subfeature nested_cl**
-[white]**$ git map-branches**
-[red]#origin/master#
- [green]#cool_feature#
- [aqua]#subfeature# <1>
- [aqua]#nested_cl *#
- [green]#frozen_changes#
- [green]#independent_cl#
-[white]**$ git checkout cool_feature**
-[white]**$ git new-branch --upstream_current cl_depends_on_cool_feature**
-[white]**$ git map-branches**
-[red]#origin/master#
- [aqua]#cool_feature#
- [aqua]#cl_depends_on_cool_feature *#
- [green]#subfeature#
- [green]#nested_cl#
- [green]#frozen_changes#
- [green]#independent_cl#
-----
-<1> Note that both branches are cyan because they are currently the same
-'commit' object. See linkgit::git-map-branches[1] for more detail.
+1. Note that both branches are cyan because they are currently the same
+'commit' object. See linkgit:git-map-branches[1] for more detail.
include::_aliases.txt[]
« no previous file with comments | « docs/src/git-nav-upstream.demo.1.sh ('k') | docs/src/git-new-branch.demo.1.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698