git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2] Clarify: rebase exit leaves <branch> checked-out

From
Drew Northup <drew.northup@maine.edu>
Date
Mar 14, 2011, 15:47 UTC
Message-ID
<1300117657.5129.41.camel@drew-northup.unet.maine.edu>
In-Reply-To
<7vtyf6hkpo.fsf@alter.siamese.dyndns.org>

This change makes it clearer that while the change to the history effected by executing 'git rebase master' and 'git rebase master topic' (in the example given) will be the same the implicit checkout of the second form will always remain following the rebase.

Signed-off-by: Drew Northup <drew.northup@maine.edu>
---

This applies cleanly to both master and pu. Changed patch subject to better match the amended contents.

 Documentation/git-rebase.txt |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt
index 96680c8..ac35894 100644
--- a/Documentation/git-rebase.txt
+++ b/Documentation/git-rebase.txt
@@ -66,8 +66,9 @@ would be:
     D---E---F---G master
 ------------
 
-The latter form is just a short-hand of `git checkout topic`
-followed by `git rebase master`.
+*NOTE:* The latter form is just a short-hand of `git checkout topic`
+followed by `git rebase master`. When rebase exits `topic` will
+remain the checked-out branch.
 
 If the upstream branch already contains a change you have made (e.g.,
 because you mailed a patch which was applied upstream), then that commit
-- 
1.7.4
-- 
-Drew Northup
________________________________________________
"As opposed to vegetable or mineral error?"
-John Pescatore, SANS NewsBites Vol. 12 Num. 59
Previous: Drew Northup
Message 5 of 5 in “Clarify: rebase abort leaves <branch> checked-out”
  1. Clarify: rebase abort leaves <branch> checked-outDrew Northup, Mar 13, 2011
  2. Johannes SchindelinMar 13, 2011
  3. Junio C HamanoMar 13, 2011
  4. Drew NorthupMar 14, 2011
  5. Clarify: rebase exit leaves <branch> checked-outDrew Northup, Mar 14, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.