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

Unified Diff: docs/html/git-squash-branch.html

Issue 184253003: Add git-reup and friends (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@freeze_thaw
Patch Set: fix pylint Created 6 years, 9 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/html/git-reparent-branch.html ('k') | docs/html/git-thaw.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: docs/html/git-squash-branch.html
diff --git a/docs/html/git-map.html b/docs/html/git-squash-branch.html
similarity index 79%
copy from docs/html/git-map.html
copy to docs/html/git-squash-branch.html
index 828e1c057695e35234afcc7f22298417c620a40e..92797b54a3319b359bc16d8484d9f87dee586597 100644
--- a/docs/html/git-map.html
+++ b/docs/html/git-squash-branch.html
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
<meta name="generator" content="AsciiDoc 8.6.9" />
-<title>git-map(1)</title>
+<title>git-squash-branch(1)</title>
<style type="text/css">
/* Shared CSS for AsciiDoc xhtml11 and html5 backends */
@@ -741,12 +741,12 @@ asciidoc.install();
<body class="manpage">
<div id="header">
<h1>
-git-map(1) Manual Page
+git-squash-branch(1) Manual Page
</h1>
<h2>NAME</h2>
<div class="sectionbody">
-<p>git-map -
- Display history of all branches in a colorized terminal format.
+<p>git-squash-branch -
+ Takes all commits in a single branch and replaces them with a single commit.
</p>
</div>
</div>
@@ -755,7 +755,7 @@ git-map(1) Manual Page
<h2 id="_synopsis">SYNOPSIS</h2>
<div class="sectionbody">
<div class="verseblock">
-<pre class="content"><em>git map</em> [&lt;extra_args&gt;&#8230;]</pre>
+<pre class="content"><em>git squash-branch</em> [-m &lt;message&gt;]</pre>
<div class="attribution">
</div></div>
</div>
@@ -763,36 +763,19 @@ git-map(1) Manual Page
<div class="sect1">
<h2 id="_description">DESCRIPTION</h2>
<div class="sectionbody">
-<div class="paragraph"><p>Git map formats the output of <code>git log --graph</code> from all refs such that:</p></div>
-<div class="ulist"><ul>
-<li>
-<p>
-Current branch is <span class="aqua">cyan</span>.
-</p>
-</li>
-<li>
-<p>
-Local branches are <span class="green">green</span>.
-</p>
-</li>
-<li>
-<p>
-Remote branches are <span class="red">red</span>.
-</p>
-</li>
-<li>
-<p>
-Tags are <span class="fuchsia">magenta</span>.
-</p>
-</li>
-<li>
-<p>
-The currently checked out commit is highlighted with a <span class="yellow blue-background">blue background</span>.
-</p>
-</li>
-</ul></div>
-<div class="paragraph"><p>The output is automatically piped through the <code>less</code> pager command, even on
-windows.</p></div>
+<div class="paragraph"><p><code>git squash-branch</code> is a simple helper command. It takes all the commits on the
+current branch from the <em>merge_base</em> to HEAD, and reduces them to a single
+commit. The new commit will contain a summary of all the commits which were
+squashed, preceeded by a header message indicating that it&#8217;s the result of a
+squash (or the message you pass on the command line.).</p></div>
+<div class="paragraph"><p>Squashing branches is useful when trying to rebase-update over branches which
+were pushed to their upsteram (or committed by the <em>Commit Queue</em>), and then
+conflicting changes landed in upstream on top of the push/commit. If you know
+that your branch was committed but <a href="git-rebase-update.html">git-rebase-update(1)</a> isn&#8217;t able to
+automatically clean it, you can squash the troublesome branch before <code>git
+rebase-update</code>, and then when <code>git rebase-update</code> presents the conflict, you can
+verify that the conflict diff is what you expected (and then skip it with
+<code>git rebase --skip</code>).</p></div>
</div>
</div>
<div class="sect1">
@@ -800,64 +783,75 @@ windows.</p></div>
<div class="sectionbody">
<div class="dlist"><dl>
<dt class="hdlist1">
-&lt;extra_args&gt;&#8230;
+-m &lt;message&gt;
+</dt>
+<dt class="hdlist1">
+--message=&lt;message&gt;
</dt>
<dd>
<p>
- Extra parameters to pass to the internal <a href="git-log.html">git-log(1)</a> invocation. This
- can be used to restrict what refs <em>git map</em> operates on, etc.
+ Optional message to use for the first line of the squashed commit. If omitted,
+ it defaults to "git squash commit.".
</p>
-<div class="paragraph"><p>If you run git map with a series of fixed arguments frequently, you can use
-the depot_tools.map_extra configuration variable to pre-set arguments (See
-<code>CONFIGURATION VARIABLES</code>)</p></div>
</dd>
</dl></div>
</div>
</div>
<div class="sect1">
-<h2 id="_configuration_variables">CONFIGURATION VARIABLES</h2>
-<div class="sectionbody">
-<div class="sect2">
-<h3 id="_depot_tools_map_extra">depot_tools.map_extra</h3>
-<div class="paragraph"><p>Each value of the <em>depot_tools.map_extra</em> config variable is applied as an
-additional argument to <code>git log</code> during the execution of git map. If you wish to
-configure this, use git <code>config --add depot_tools.map_extra &lt;value&gt;</code> to do so.</p></div>
-</div>
-</div>
-</div>
-<div class="sect1">
<h2 id="_example">EXAMPLE</h2>
<div class="sectionbody">
-<div class="paragraph"><p>Running <em>git map</em> would result in an output something like:</p></div>
<div class="listingblock">
<div class="content">
<pre><code><strong><span class="white">$ git map</span></strong>
<span class="white blue-background">*</span>&#8203;<strong><span class="blue-background red"> 7dcfe47 </span></strong> <span class="green">(</span>&#8203;<strong><span class="aqua">frozen_changes</span></strong>&#8203;<span class="green">)</span> <span class="yellow">2014-03-12</span> ~ FREEZE.unindexed
* <strong><span class="red">4b0c180</span></strong> <span class="yellow">2014-03-12</span> ~ modfile
* <strong><span class="red">59a7cca</span></strong> <span class="yellow">2014-03-12</span> ~ a deleted file
-* <strong><span class="red">6bec695</span></strong> <span class="green">(</span>&#8203;<span class="red">origin/master</span>&#8203;<span class="green">)</span> <span class="yellow">2014-03-11</span> ~ Add neat feature
+* <strong><span class="red">6bec695</span></strong> <span class="green">(</span>&#8203;<span class="red">origin/master</span>&#8203;<span class="green">)</span> <span class="yellow">2014-03-11</span> ~ Add neat feature <strong><span class="white">&lt;(frozen_changes)</span></strong>
* <strong><span class="red">d15a38a</span></strong> <span class="yellow">2014-03-11</span> ~ Epic README update
* <strong><span class="red">d559894</span></strong> <span class="green">(</span>&#8203;<strong><span class="lime">master</span></strong>&#8203;<span class="green">)</span> <span class="yellow">2014-03-11</span> ~ Important upstream change
<span class="red">|</span> * <strong><span class="red">9c311fd</span></strong> <span class="green">(</span>&#8203;<strong><span class="lime">cool_feature</span></strong>&#8203;<span class="green">)</span> <span class="yellow">2014-03-11</span> ~ Respond to CL comments
<span class="red">|</span> <span class="green">|</span> * <strong><span class="red">2a1eeb2</span></strong> <span class="green">(</span>&#8203;<strong><span class="lime">subfeature</span></strong>&#8203;<span class="green">)</span> <span class="yellow">2014-03-11</span> ~ integrate with CoolService
<span class="red">|</span> <span class="green">|</span> * <strong><span class="red">d777af6</span></strong> <span class="yellow">2014-03-11</span> ~ slick commenting action
<span class="red">|</span> <span class="green">|/</span>
-<span class="red">|</span> * <strong><span class="red">265803a</span></strong> <span class="yellow">2014-03-11</span> ~ another improvement
+<span class="red">|</span> * <strong><span class="red">265803a</span></strong> <span class="yellow">2014-03-11</span> ~ another improvement <strong><span class="white">&lt;(subfeature)</span></strong>
<span class="red">|</span> * <strong><span class="red">6d831ac</span></strong> <span class="green">(</span>&#8203;<strong><span class="fuchsia">spleen_tag</span></strong>&#8203;<span class="green">)</span> <span class="yellow">2014-03-11</span> ~ Refactor spleen
<span class="red">|</span> * <strong><span class="red">82e74ab</span></strong> <span class="yellow">2014-03-11</span> ~ Add widget
<span class="red">|/</span>
-* <strong><span class="red">d08c5b3</span></strong> <span class="green">(</span>&#8203;<strong><span class="lime">bogus_noparent</span></strong>&#8203;<span class="green">)</span> <span class="yellow">2014-03-11</span> ~ Wonderful beginnings</code></pre>
+* <strong><span class="red">d08c5b3</span></strong> <span class="green">(</span>&#8203;<strong><span class="lime">bogus_noparent</span></strong>&#8203;<span class="green">)</span> <span class="yellow">2014-03-11</span> ~ Wonderful beginnings <strong><span class="white">&lt;(cool_feature)</span></strong>
+<strong><span class="white">$ git squash-branch "cool squash demo"</span></strong>
+<strong><span class="white">$ git map</span></strong>
+<span class="white blue-background">*</span>&#8203;<strong><span class="blue-background red"> 2c81508 </span></strong> <span class="green">(</span>&#8203;<strong><span class="aqua">frozen_changes</span></strong>&#8203;<span class="green">)</span> <span class="yellow">2014-03-22</span> ~ cool squash demo
+* <strong><span class="red">6bec695</span></strong> <span class="green">(</span>&#8203;<span class="red">origin/master</span>&#8203;<span class="green">)</span> <span class="yellow">2014-03-11</span> ~ Add neat feature <strong><span class="white">&lt;(frozen_changes)</span></strong>
+* <strong><span class="red">d15a38a</span></strong> <span class="yellow">2014-03-11</span> ~ Epic README update
+* <strong><span class="red">d559894</span></strong> <span class="green">(</span>&#8203;<strong><span class="lime">master</span></strong>&#8203;<span class="green">)</span> <span class="yellow">2014-03-11</span> ~ Important upstream change
+<span class="red">|</span> * <strong><span class="red">9c311fd</span></strong> <span class="green">(</span>&#8203;<strong><span class="lime">cool_feature</span></strong>&#8203;<span class="green">)</span> <span class="yellow">2014-03-11</span> ~ Respond to CL comments
+<span class="red">|</span> <span class="green">|</span> * <strong><span class="red">2a1eeb2</span></strong> <span class="green">(</span>&#8203;<strong><span class="lime">subfeature</span></strong>&#8203;<span class="green">)</span> <span class="yellow">2014-03-11</span> ~ integrate with CoolService
+<span class="red">|</span> <span class="green">|</span> * <strong><span class="red">d777af6</span></strong> <span class="yellow">2014-03-11</span> ~ slick commenting action
+<span class="red">|</span> <span class="green">|/</span>
+<span class="red">|</span> * <strong><span class="red">265803a</span></strong> <span class="yellow">2014-03-11</span> ~ another improvement <strong><span class="white">&lt;(subfeature)</span></strong>
+<span class="red">|</span> * <strong><span class="red">6d831ac</span></strong> <span class="green">(</span>&#8203;<strong><span class="fuchsia">spleen_tag</span></strong>&#8203;<span class="green">)</span> <span class="yellow">2014-03-11</span> ~ Refactor spleen
+<span class="red">|</span> * <strong><span class="red">82e74ab</span></strong> <span class="yellow">2014-03-11</span> ~ Add widget
+<span class="red">|/</span>
+* <strong><span class="red">d08c5b3</span></strong> <span class="green">(</span>&#8203;<strong><span class="lime">bogus_noparent</span></strong>&#8203;<span class="green">)</span> <span class="yellow">2014-03-11</span> ~ Wonderful beginnings <strong><span class="white">&lt;(cool_feature)</span></strong></code></pre>
+</div></div>
+</div>
+</div>
+<div class="sect1">
+<h2 id="_suggested_aliases">SUGGESTED ALIASES</h2>
+<div class="sectionbody">
+<div class="paragraph"><p>Some common short-hand aliases. Feel free to add these to your <em>~/.gitconfig</em>
+file.</p></div>
+<div class="listingblock">
+<div class="content">
+<pre><code>[alias]
+ git squash = squash-branch</code></pre>
</div></div>
-<div class="paragraph"><p>As you can see, the structure of the commit history is visible, particularly
-what the parents of each commit are. In order to see the <em>upstream</em>
-relationships of the branches (i.e. which branch is tracking which other
-branch), use the <a href="git-map-branches.html">git-map-branches(1)</a> command.</p></div>
</div>
</div>
<div class="sect1">
<h2 id="_see_also">SEE ALSO</h2>
<div class="sectionbody">
-<div class="paragraph"><p><a href="git-map-branches.html">git-map-branches(1)</a></p></div>
+<div class="paragraph"><p><a href="git-rebase-update.html">git-rebase-update(1)</a></p></div>
</div>
</div>
<div class="sect1">
@@ -872,7 +866,7 @@ from <a href="https://chromium.googlesource.com/chromium/tools/depot_tools.git">
<div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
-Last updated 2014-03-14 14:01:55 PDT
+Last updated 2014-03-25 15:09:11 PDT
</div>
</div>
</body>
« no previous file with comments | « docs/html/git-reparent-branch.html ('k') | docs/html/git-thaw.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698