diff options
Diffstat (limited to 'git-switch.html')
-rw-r--r-- | git-switch.html | 10 |
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><new-branch></code> starting at
- <code><start-point></code> before switching to the branch. This is a
- convenient shortcut for:
+ <code><start-point></code> before switching to the branch. This is the
+ transactional equivalent of
</p>
<div class="listingblock">
<div class="content">
<pre><code>$ git branch <new-branch>
$ git switch <new-branch></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 <new-branch>
@@ -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>
|