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

Re: totorial-2 Re: (unknown)

From
Junio C Hamano <junkio@cox.net>
Date
May 22, 2006, 00:35 UTC
Message-ID
<7vfyj2hp5p.fsf_-_@assigned-by-dhcp.cox.net>
In-Reply-To
<1148255528.61d5d241.2@fieldses.org>
"J. Bruce Fields" <bfields@fieldses.org> writes:
> From nobody Mon Sep 17 00:00:00 2001
> From: J. Bruce Fields <bfields@citi.umich.edu>
> Date: Sun, 21 May 2006 19:49:34 -0400
> Subject: [PATCH 3/3] tutorial: add discussion of index file, object database
Thanks.  I like the changes to tutorial.txt too btw.
Show 11 quoted lines
> @@ -0,0 +1,391 @@
> +A tutorial introduction to git: part two
>...
> +and the contents of these files is just the compressed data plus a
> +header identifying their length and their type.  The type is either a
> +blob, a tree, a commit, or a tag.  We've seen a blob and a tree now,
> +so next we should look at a commit.
>...
> +Besides blobs, trees, and commits, the only remaining type of object
> +is a "tag", which we won't discuss here; refer to gitlink:git-tag[1]
> +for details.

We have created a tag in tutorial#1, so it _might_ make sense to just tell the user to cat-file it.

Show 10 quoted lines
> +------------------------------------------------
> +$ git diff
> +--- a/file.txt
> ++++ b/file.txt
> +@@ -1 +1,2 @@
> + hello world!
> + +hello world, again
> +$ git update-index file.txt
> +$ git diff
> +------------------------------------------------

Is the second line of the diff " +" intentional? The same comment to the example that immediately follows this part.

Previous: J. Bruce FieldsNext: J. Bruce Fields
Message 4 of 14 in “(unknown)”
  1. J. Bruce FieldsMay 21, 2006
  2. J. Bruce FieldsMay 21, 2006
  3. J. Bruce FieldsMay 21, 2006
  4. Junio C HamanoMay 22, 2006
  5. J. Bruce FieldsMay 22, 2006
  6. Jakub NarebskiMay 22, 2006
  7. Jakub NarebskiMay 22, 2006
  8. Junio C HamanoMay 22, 2006
  9. Jakub NarebskiMay 22, 2006
  10. J. Bruce FieldsMay 22, 2006
  11. J. Bruce FieldsMay 21, 2006
  12. Junio C HamanoMay 22, 2006
  13. J. Bruce FieldsMay 22, 2006
  14. git help: remove whatchanged from list of common commandsMartin Waitz, May 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.