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

worth enhancing "man git-rebase" to show non-HEAD examples?

From
Robert P. J. Day <rpjday@crashcourse.ca>
Date
Mar 4, 2019, 15:01 UTC
Message-ID
<alpine.LFD.2.21.1903040955540.16666@localhost.localdomain>
  one of the things i've noticed about the examples in "man
git-rebase" is that they invariably show rebasing relative to a
branch point that has not moved. for example, there's this example:
       o---o---o---o---o  master
            \
             o---o---o---o---o  next
                              \
                               o---o---o  topic
with subsequent sample command:
  $ git rebase --onto master next topic

sure, that works, but there seem to be no examples that show that this is a valid starting point as well:

       o---o---o---o---o  master
            \
             o---o---o---o---o  next
                      \
                       o---o---o  topic

as in, the examples in that man page could potentially suggest to an inexperienced reader that the *only* valid situations are rebasing as long as the other branch has not developed any further. (yes, i realize that, if you read carefully, it *should* make it clear, but i think it would be helpful to at least graphically show that happening.)

  thoughts?
rday
-- 
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                  http://crashcourse.ca/dokuwiki

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
Next: Junio C Hamano
Message 1 of 3 in “worth enhancing "man git-rebase" to show non-HEAD examples?”
  1. Robert P. J. DayMar 4, 2019
  2. Junio C HamanoMar 5, 2019
  3. Robert P. J. DayMar 5, 2019

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.