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

Re: What's cooking in git.git (topics)

From
JFJ. Bruce Fields <bfields@fieldses.org>
Date
Nov 27, 2007, 17:07 UTC
Message-ID
<20071127170749.GA19136@fieldses.org>
In-Reply-To
<Pine.LNX.4.64.0711271652070.27959@racer.site>
On Tue, Nov 27, 2007 at 04:54:18PM +0000, Johannes Schindelin wrote:
Show 11 quoted lines
> Hi,
> 
> On Tue, 27 Nov 2007, J. Bruce Fields wrote:
> 
> > If we really want a fetch+rebase script, OK, but call it something other 
> > than pull.
> 
> Why?  pull = fetch + merge only because that was the originally envisioned 
> way to pull remote changes into your local working tree.  However, I do 
> not see why we should be married to pull being a fetch and a merge for 
> eternity.
Two responses:

First, OK, if you want to say "pull" means "fetch something and then incorporate it somehow into your current branch", that doesn't bother me quite as much as saying that "pull" always means "fetch + merge", and that "rebase" is really just a special kind of merge. It's clearly not a merge.

Second: "fetch+rebase" will really have very different properties from
"fetch+pull".  It may be possible to make the former behave a little
like the latter in some common cases, but it's going to complicated.
And a lot of git-pull documentation is going to end up with clauses like
"...except if you're running pull in 'rebase' mode, in which case...".
Better to keep the two cases as separate operations with separate syntax
and man pages.  (But share where it makes sense--e.g. any syntax and
documentation of fetch part should be shared.)
--b.
Previous: Johannes SchindelinNext: Andreas Ericsson
Message 13 of 22 in “Re: What's cooking in git.git (topics)”
  1. しらいしななこNov 27, 2007
  2. Johannes SchindelinNov 27, 2007
  3. Andreas EricssonNov 27, 2007
  4. Johannes SchindelinNov 27, 2007
  5. Andreas EricssonNov 27, 2007
  6. Nicolas PitreNov 27, 2007
  7. J. Bruce FieldsNov 27, 2007
  8. Nicolas PitreNov 27, 2007
  9. J. Bruce FieldsNov 27, 2007
  10. Nicolas PitreNov 27, 2007
  11. J. Bruce FieldsNov 27, 2007
  12. Johannes SchindelinNov 27, 2007
  13. J. Bruce FieldsNov 27, 2007
  14. Andreas EricssonNov 28, 2007
  15. Nicolas PitreNov 27, 2007
  16. Junio C HamanoNov 29, 2007
  17. J. Bruce FieldsNov 29, 2007
  18. Junio C HamanoNov 29, 2007
  19. Johan HerlandNov 29, 2007
  20. Nicolas PitreNov 29, 2007
  21. Junio C HamanoNov 27, 2007
  22. Johannes SchindelinNov 27, 2007

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.