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

Re: When does git check for branch-X being uptodate with origin/branch-X?

From
Philip Oakley <philipoakley@iee.org>
Date
Mar 22, 2016, 19:23 UTC
Message-ID
<F2B253E6836D4C948D85BADEAE2527C0@PhilipOakley>
In-Reply-To
<CA+39Oz4Atuv3N0QNj8o1SYgHzMUyES1QHUsWh-MdNiNr-xPM_w@mail.gmail.com>
From: "Thomas Adam" <thomas.adam22@gmail.com>
Sent: Monday, March 21, 2016 8:43 PM
Show 13 quoted lines
> On 21 March 2016 at 20:28, Jeff King <peff@peff.net> wrote:
>> We never contact other repositories unless explicitly asked to by
>> fetch, pull, push, etc. If you want to have the most up-to-date value
>> without merging, you can just "git fetch" to update the tracking
>> branches.
>
> Thanks.  I understand how to use git-fetch, it's more a case of
> whether even printing that message is useful?  I appreciate it can
> only go on the cached value, but it is still misleading to print that
> in the case where the cache might not be up to date.  Of course,
> determining that is a different problem.
>
> -- Thomas Adam

This issue (that the tracking is passive, not 'active') may also be something for the 'Beginner mode' discussion.

The rtb (remote tracking branch) was something I'd noted earlier in the initial 'Beginner mode', discussion, $gmane/288727/focus=288812 (GSoC Introduction; 14 Mar '16, 22:08)

"The Git data model is very powerful and it does take a lot of 'unlearning' of old expectations (which is very hard) before the capabilities of the git model become well established in the users mind. For example, remote tracking branches are not remote but local, and are a reverse polish description (a local branch which keeps track of a remote's branch, from the last time you looked).

Different people get different parts of the model in different orders and different rates. Identifying the many issues (in model understanding) may be a start for identifying which command/options should be targeted."

-- Philip

Previous: Stefan BellerNext: Stefan Beller
Message 14 of 16 in “When does git check for branch-X being uptodate with origin/branch-X?”
  1. Thomas AdamMar 21, 2016
  2. Jeff KingMar 21, 2016
  3. Thomas AdamMar 21, 2016
  4. Junio C HamanoMar 21, 2016
  5. Jeff KingMar 21, 2016
  6. Thomas AdamMar 21, 2016
  7. Jeff KingMar 21, 2016
  8. Thomas AdamMar 21, 2016
  9. Stefan BellerMar 21, 2016
  10. Junio C HamanoMar 21, 2016
  11. Stefan BellerMar 21, 2016
  12. Junio C HamanoMar 21, 2016
  13. Stefan BellerMar 21, 2016
  14. Philip OakleyMar 22, 2016
  15. Stefan BellerMar 21, 2016
  16. Junio C HamanoMar 21, 2016

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.