diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-04-11 01:38:02 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-04-11 01:38:02 -0700 |
commit | 59a5f538654f236fe02b2b1cf0412ec05c6b023a (patch) | |
tree | 45b6911dff4ba4c237b45dc9fc994195b9165f9d /git-branch.html | |
parent | dc8d0c30582dfb0c734e0999ffbb301067de92ef (diff) | |
download | git-htmldocs-59a5f538654f236fe02b2b1cf0412ec05c6b023a.tar.gz |
Autogenerated HTML docs for v2.12.2-599-gcf11a
Diffstat (limited to 'git-branch.html')
-rw-r--r-- | git-branch.html | 43 |
1 files changed, 31 insertions, 12 deletions
diff --git a/git-branch.html b/git-branch.html index 12dcbc798..3e1d9e82f 100644 --- a/git-branch.html +++ b/git-branch.html @@ -750,8 +750,9 @@ git-branch(1) Manual Page <div class="verseblock">
<pre class="content"><em>git branch</em> [--color[=<when>] | --no-color] [-r | -a]
[--list] [-v [--abbrev=<length> | --no-abbrev]]
- [--column[=<options>] | --no-column]
- [(--merged | --no-merged | --contains) [<commit>]] [--sort=<key>]
+ [--column[=<options>] | --no-column] [--sort=<key>]
+ [(--merged | --no-merged) [<commit>]]
+ [--contains [<commit]] [--no-contains [<commit>]]
[--points-at <object>] [--format=<format>] [<pattern>…]
<em>git branch</em> [--set-upstream | --track | --no-track] [-l] [-f] <branchname> [<start-point>]
<em>git branch</em> (--set-upstream-to=<upstream> | -u <upstream>) [<branchname>]
@@ -777,11 +778,12 @@ it matches any of the patterns. Note that when providing a as branch creation.</p></div>
<div class="paragraph"><p>With <code>--contains</code>, shows only the branches that contain the named commit
(in other words, the branches whose tip commits are descendants of the
-named commit). With <code>--merged</code>, only branches merged into the named
-commit (i.e. the branches whose tip commits are reachable from the named
-commit) will be listed. With <code>--no-merged</code> only branches not merged into
-the named commit will be listed. If the <commit> argument is missing it
-defaults to <code>HEAD</code> (i.e. the tip of the current branch).</p></div>
+named commit), <code>--no-contains</code> inverts it. With <code>--merged</code>, only branches
+merged into the named commit (i.e. the branches whose tip commits are
+reachable from the named commit) will be listed. With <code>--no-merged</code> only
+branches not merged into the named commit will be listed. If the <commit>
+argument is missing it defaults to <code>HEAD</code> (i.e. the tip of the current
+branch).</p></div>
<div class="paragraph"><p>The command’s second form creates a new branch head named <branchname>
which points to the current <code>HEAD</code>, or <start-point> if given.</p></div>
<div class="paragraph"><p>Note that this will create the new branch, but it will not switch the
@@ -1100,12 +1102,22 @@ start-point is either a local or remote-tracking branch.</p></div> </p>
</dd>
<dt class="hdlist1">
+--no-contains [<commit>]
+</dt>
+<dd>
+<p>
+ Only list branches which don’t contain the specified commit
+ (HEAD if not specified). Implies <code>--list</code>.
+</p>
+</dd>
+<dt class="hdlist1">
--merged [<commit>]
</dt>
<dd>
<p>
Only list branches whose tips are reachable from the
- specified commit (HEAD if not specified). Implies <code>--list</code>.
+ specified commit (HEAD if not specified). Implies <code>--list</code>,
+ incompatible with <code>--no-merged</code>.
</p>
</dd>
<dt class="hdlist1">
@@ -1114,7 +1126,8 @@ start-point is either a local or remote-tracking branch.</p></div> <dd>
<p>
Only list branches whose tips are not reachable from the
- specified commit (HEAD if not specified). Implies <code>--list</code>.
+ specified commit (HEAD if not specified). Implies <code>--list</code>,
+ incompatible with <code>--merged</code>.
</p>
</dd>
<dt class="hdlist1">
@@ -1251,8 +1264,8 @@ is currently checked out) does not have all commits from the test branch. <div class="paragraph"><p>If you are creating a branch that you want to checkout immediately, it is
easier to use the git checkout command with its <code>-b</code> option to create
a branch and check it out with a single command.</p></div>
-<div class="paragraph"><p>The options <code>--contains</code>, <code>--merged</code> and <code>--no-merged</code> serve three related
-but different purposes:</p></div>
+<div class="paragraph"><p>The options <code>--contains</code>, <code>--no-contains</code>, <code>--merged</code> and <code>--no-merged</code>
+serve four related but different purposes:</p></div>
<div class="ulist"><ul>
<li>
<p>
@@ -1263,6 +1276,12 @@ but different purposes:</p></div> </li>
<li>
<p>
+<code>--no-contains <commit></code> is the inverse of that, i.e. branches that don’t
+ contain the specified <commit>.
+</p>
+</li>
+<li>
+<p>
<code>--merged</code> is used to find all branches which can be safely deleted,
since those branches are fully contained by HEAD.
</p>
@@ -1296,7 +1315,7 @@ a branch?”</a> in the Git User’s Manual.</p></div> <div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
-Last updated 2017-03-28 15:01:30 PDT
+Last updated 2017-04-11 01:37:50 PDT
</div>
</div>
</body>
|