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

Re: Looking for a way to turn off/modify ref disambiguation

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 24, 2011, 17:48 UTC
Message-ID
<7vr54apuo1.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4E54C373.1070702@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
> I haven't come across advice like that....
> I consider that advice very bad indeed:
>
> If "origin..master" is resolved to...

Perhaps origin..master was a bad example for you [*1*]; but the point is you can say "origin" to mean the commit at the tip of the remote tracking branch that the repository you cloned from deemed as its primary branch anywhere we expect a commit on the command line.

So if you do not like "log origin..master", then say "git log origin" instead and the point still stands.

[Footnote]

*1* "origin..master" is still a perfectly good example in tutorials to teach people who use the workflow with a single at the central repository, i.e. the simplest for esapee from CVS/SVN. You may have "frotz" topic and "nitfol" topic branches locally cooking your own changes, and you can measure their progress against the central repository with "origin..frotz" and "origin..nitfol".

Previous: Jonathan NiederNext: Clemens Buchacher
Message 6 of 7 in “Looking for a way to turn off/modify ref disambiguation”
  1. Nathan W. PanikeAug 23, 2011
  2. Jeff KingAug 23, 2011
  3. Junio C HamanoAug 23, 2011
  4. Michael J GruberAug 24, 2011
  5. Jonathan NiederAug 24, 2011
  6. Junio C HamanoAug 24, 2011
  7. Clemens BuchacherAug 24, 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.