summaryrefslogtreecommitdiffstats
path: root/git-switch.html
diff options
context:
space:
mode:
Diffstat (limited to 'git-switch.html')
-rw-r--r--git-switch.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/git-switch.html b/git-switch.html
index 1f9277ff2..651930bd8 100644
--- a/git-switch.html
+++ b/git-switch.html
@@ -823,14 +823,18 @@ out at most one of <code>A</code> and <code>B</code>, in which case it defaults
<dd>
<p>
Create a new branch named <code>&lt;new-branch&gt;</code> starting at
- <code>&lt;start-point&gt;</code> before switching to the branch. This is a
- convenient shortcut for:
+ <code>&lt;start-point&gt;</code> before switching to the branch. This is the
+ transactional equivalent of
</p>
<div class="listingblock">
<div class="content">
<pre><code>$ git branch &lt;new-branch&gt;
$ git switch &lt;new-branch&gt;</code></pre>
</div></div>
+<div class="paragraph"><p>that is to say, the branch is not reset/created unless "git switch" is
+successful (e.g., when the branch is in use in another worktree, not
+just the current branch stays the same, but the branch is not reset to
+the start-point, either).</p></div>
</dd>
<dt class="hdlist1">
-C &lt;new-branch&gt;
@@ -1199,7 +1203,7 @@ checkout.thresholdForParallelism
<div id="footer">
<div id="footer-text">
Last updated
- 2022-09-14 13:23:11 PDT
+ 2023-12-27 15:50:18 PST
</div>
</div>
</body>