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

Re: What's in git.git

From
Petr Baudis <pasky@suse.cz>
Date
Mar 22, 2006, 11:52 UTC
Message-ID
<20060322115218.GT18185@pasky.or.cz>
In-Reply-To
<7vodzzb5q3.fsf@assigned-by-dhcp.cox.net>

Dear diary, on Wed, Mar 22, 2006 at 02:58:28AM CET, I got a letter where Junio C Hamano <junkio@cox.net> said that...

Show 14 quoted lines
>    When --use-separate-remote is in effect, the tracking
>    branches are created in $GIT_DIR/refs/remotes/origin/ and you
>    will not get the extra "origin" head.  Your local branch
>    namespace under $GIT_DIR/refs/heads/ will only have "master".
>    In addition, a symref $GIT_DIR/refs/remotes/origin/HEAD
>    points at the primary branch of the remote repository.
>    Similar to a filename in $GIT_DIR/refs/{heads,tags} that can
>    be used to name a ref (e.g. when you say "git diff frotz",
>    you are telling git to read from $GIT_DIR/refs/heads/frotz
>    and use that commit ID to diff your working tree against), a
>    directory that has such a symref under $GIT_DIR/refs/remotes
>    can be used to name the ref.  IOW, "git diff origin" in a
>    repository a cloned this way means you want a diff against
>    $GIT_DIR/refs/remotes/origin/HEAD.
Sounds very good.
Show 5 quoted lines
>    A new configuration option, 'core.warnambiguousrefs', can be
>    set to warn you if you use "frotz" to name a ref when you
>    have more than one "frotz" under $GIT_DIR/refs (e.g. you have
>    both branch "frotz" and tag "frotz", and/or you have
>    refs/remotes/frotz/HEAD).
Is there any reason why this isn't enabled by default?
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Right now I am having amnesia and deja-vu at the same time.  I think
I have forgotten this before.
Previous: Bertrand JacquinNext: Junio C Hamano
Message 9 of 10 in “What's in git.git”
  1. Junio C HamanoMar 22, 2006
  2. Randal L. SchwartzMar 22, 2006
  3. Randal L. SchwartzMar 22, 2006
  4. Junio C HamanoMar 22, 2006
  5. Randal L. SchwartzMar 22, 2006
  6. Junio C HamanoMar 22, 2006
  7. Linus TorvaldsMar 22, 2006
  8. Bertrand JacquinMar 22, 2006
  9. Petr BaudisMar 22, 2006
  10. Junio C HamanoMar 22, 2006

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.