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

Re: history missing

From
Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Date
Nov 8, 2010, 13:37 UTC
Message-ID
<AANLkTin2-WAHMjKFKVqq7Wbzvjg-KzMkBh1kCGxDH6Mf@mail.gmail.com>
In-Reply-To
<m3mxpkeyh4.fsf@localhost.localdomain>
On Mon, Nov 8, 2010 at 8:29 AM, Jakub Narebski <jnareb@gmail.com> wrote:
Show 27 quoted lines
> Martin von Zweigbergk <martin.von.zweigbergk@gmail.com> writes:
>> On Mon, Nov 8, 2010 at 4:02 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:
>>> Vitaliy Semochkin wrote:
>>>
>>>> I cloned a remote repository
>>>> to check recent changes in origin/master I do:
>>>> git fetch origin master
>
> This fetches into FETCH_HEAD _only_ from "origin" *remote*.
>
>>>> git log origin master
>
> This show log of 'origin/HEAD', which probably is 'origin/master'...
> but which didn't get updated, and local branch 'master'.
>
>>>>
>>>> recently I found out that log doesn't show recent commits
>>>
>>> Yes, this can be confusing.
>>
>> I agree and I believe this has come up a lot of times before. I talked
>> to Jeff and Junio about this at GitTogether and Jeff said he has a patch
>> for it that he would try to get up to date in a while. (Thanks, Jeff!)
>
> How can this issue be solved?  The meaning of parameters in 'git fetch'
> is different from meaning of parameters in 'git log'.
>

Sorry, maybe I misunderstood what the confusion was about. What I was referring to was the confusion caused by 'git fetch origin master' not updating 'refs/remotes/origin/master'.

/Martin
Previous: Jakub NarebskiNext: Jakub Narebski
Message 6 of 10 in “history missing”
  1. Vitaliy SemochkinOct 26, 2010
  2. Sverre RabbelierOct 26, 2010
  3. Jonathan NiederNov 8, 2010
  4. Martin von ZweigbergkNov 8, 2010
  5. Jakub NarebskiNov 8, 2010
  6. Martin von ZweigbergkNov 8, 2010
  7. Jakub NarebskiNov 8, 2010
  8. Martin von ZweigbergkNov 8, 2010
  9. Jeff KingNov 8, 2010
  10. Alex RiesenNov 8, 2010

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.