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

Re: [PATCH] Simplified GIT usage guide

From
DHDavid Howells <dhowells@redhat.com>
Date
Dec 13, 2008, 01:12 UTC
Message-ID
<32096.1229130776@redhat.com>
In-Reply-To
<20081212190900.GL5691@genesis.frugalware.org>
Miklos Vajna <vmiklos@frugalware.org> wrote:
Show 5 quoted lines
> > > Is there any reason you hide the tag object?
> > 
> > What's a tag object?
> 
> http://www.kernel.org/pub/software/scm/git/docs/gitglossary.html#def_tag_object

Okay. I do mention tags. How they're stored in the database is irrelevant. As far as most users need be concerned, a tag is a symbolic representation of a particular commit in the tree; a particular state of the source tree.

Think of symbolic links as an analogy. Most users just need to know that a symlink represents the location of another part of the VFS tree; actually most users will just think of them as a pointer to the name of a file, if even that much. The fact that, say, ReiserFS tail packs them because they tend to be small, or that AFS symlinks have weird properties that encode mountpoints is irrelevant to most users. You don't need to know that to use them.

Yes, GIT's database has blob objects, tree objects, commit objects and tag objects; but as far as the normal user is concerned, it stores files, lists of files (directories or, more probably, folders), commits and tags. The physical low-level stuff is completely irrelevant.

There is one exception to that: commit IDs. These are public-facing as it were. GIT waves them in your face, and you have to use them occasionally, so it's useful to say a bit about them.

David
Previous: Miklos VajnaNext: Miklos Vajna
Message 5 of 38 in “Simplified GIT usage guide”
  1. Simplified GIT usage guideDavid Howells, Dec 12, 2008
  2. Miklos VajnaDec 12, 2008
  3. David HowellsDec 12, 2008
  4. Miklos VajnaDec 12, 2008
  5. David HowellsDec 13, 2008
  6. Miklos VajnaDec 13, 2008
  7. Johannes SchindelinDec 12, 2008
  8. David HowellsDec 12, 2008
  9. Sverre RabbelierDec 12, 2008
  10. Aidan Van DykDec 12, 2008
  11. Nick AndrewDec 13, 2008
  12. Ping YinDec 14, 2008
  13. Paul E. McKenneyDec 19, 2008
  14. Junio C HamanoDec 19, 2008
  15. Paul E. McKenneyDec 19, 2008
  16. valdis.kletnieks@vt.eduDec 24, 2008
  17. Johannes SchindelinDec 19, 2008
  18. Paul E. McKenneyDec 19, 2008
  19. Jakub NarebskiDec 12, 2008
  20. David HowellsDec 13, 2008
  21. Sverre RabbelierDec 13, 2008
  22. Willy TarreauDec 19, 2008
  23. Nicolas PitreDec 13, 2008
  24. J. Bruce FieldsDec 12, 2008
  25. J. Bruce FieldsDec 13, 2008
  26. David HowellsDec 13, 2008
  27. Jeff GarzikDec 12, 2008
  28. Chris FriesenDec 12, 2008
  29. David HowellsDec 13, 2008
  30. Junio C HamanoDec 13, 2008
  31. Nick AndrewDec 13, 2008
  32. Nicolas PitreDec 12, 2008
  33. Junio C HamanoDec 13, 2008
  34. Matthieu MoyDec 14, 2008
  35. Marcin SlusarzDec 14, 2008
  36. C. Scott AnanianDec 19, 2008
  37. Michael J GruberDec 19, 2008
  38. C. Scott AnanianDec 19, 2008

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.