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

Re: understanding how remote tracking works

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Aug 9, 2010, 20:53 UTC
Message-ID
<20100809205309.GA3204@burratino>
In-Reply-To
<7vaaov60rv.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> I tend to agree with Michael (modulo s/ culture/'s early&/) here.  Many
> documents written in the early days, the "tutorial" document by Linus
> being the most prominent example, were written in a way to focus exposing
> the implementation details to show how simple the structure is.
[...]
Show 6 quoted lines
>> Probably the more relevant question: what do you want to do about it?
>
> Continue the current course of encouraging the use of plumbing commands
> and not looking at the low-level implementation detail.  Perhaps help
> people update their documents, moving stale descriptions into "historical
> note" sections.
Thanks for deciphering.

So here’s a list from a quick Google search for “.git/refs” (alas, the search engine is not strong enough to return the right hits for “git "layering violation"”). Some nice pages here, actually.

 . http://linux.yyz.us/git-howto.html#diff_branch
 . http://www.lostechies.com/blogs/jason_meridth/archive/2009/06/07/git-for-windows-developers-git-series-part-3.aspx
 . http://gitfu.wordpress.com/2008/05/25/git-describe-great-another-way-to-refer-to-commits/
 . http://www-cs-students.stanford.edu/~blynn/gitmagic/ch08.html
 . http://google-opensource.blogspot.com/2008/05/export-git-project-to-google-code.html
   and http://code.google.com/p/support/wiki/ImportingFromGit
 . http://blog.stevecoinc.com/2010/02/stupid-git-tricks.html

It would be nice to find ways to suggest updates (but please coordinate so as not to flood the authors with mail).

There are a lot of instances of “rm -r .git/refs/original” after running filter-branch, too. Maybe filter-branch ought to provide some synonym for

 eval "$(
	git for-each-ref refs/heads/\* --shell --format='git update-ref -d %(refname) &&' &&
	echo :
 )"
Previous: Junio C HamanoNext: Jonathan Nieder
Message 8 of 11 in “understanding how remote tracking works”
  1. Geoff RussellAug 9, 2010
  2. Ralf EbertAug 9, 2010
  3. Geoff RussellAug 9, 2010
  4. Michael WittenAug 9, 2010
  5. Jonathan NiederAug 9, 2010
  6. Geoff RussellAug 9, 2010
  7. Junio C HamanoAug 9, 2010
  8. Jonathan NiederAug 9, 2010
  9. discarding refs/original/* after filter-branch (Re: understanding how remote tracking works)Jonathan Nieder, Aug 9, 2010
  10. Documentation: add a FILES section for show-refJonathan Nieder, Aug 9, 2010
  11. Junio C HamanoAug 9, 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.