summaryrefslogtreecommitdiffstats
path: root/gittutorial-2.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2008-10-18 18:58:09 +0000
committerJunio C Hamano <junio@hera.kernel.org>2008-10-18 18:58:09 +0000
commita2deec5920d1cc24a58ea6af6f0f7d36dedd0f7d (patch)
treecd639cd15f5ca1a220f7bff658919329d6d8f028 /gittutorial-2.html
parentcbb30868adff9a0bcc3fa4c15cd5d70e159bd32a (diff)
downloadgit-htmldocs-a2deec5920d1cc24a58ea6af6f0f7d36dedd0f7d.tar.gz
Autogenerated HTML docs for v1.6.0.2-554-g3041b
Diffstat (limited to 'gittutorial-2.html')
-rw-r--r--gittutorial-2.html17
1 files changed, 11 insertions, 6 deletions
diff --git a/gittutorial-2.html b/gittutorial-2.html
index 64e335f3a..cda00237b 100644
--- a/gittutorial-2.html
+++ b/gittutorial-2.html
@@ -342,20 +342,25 @@ Initialized empty Git repository in .git/
$ echo 'hello world' &gt; file.txt
$ git add .
$ git commit -a -m "initial commit"
-Created initial commit 54196cc2703dc165cbd373a65a4dcf22d50ae7f7
+[master (root-commit)] created 54196cc: "initial commit"
+ 1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 file.txt
$ echo 'hello world!' &gt;file.txt
$ git commit -a -m "add emphasis"
-Created commit c4d59f390b9cfd4318117afde11d601c1085f241</tt></pre>
+[master] created c4d59f3: "add emphasis"
+ 1 files changed, 1 insertions(+), 1 deletions(-)</tt></pre>
</div></div>
-<div class="para"><p>What are the 40 digits of hex that git responded to the commit with?</p></div>
+<div class="para"><p>What are the 7 digits of hex that git responded to the commit with?</p></div>
<div class="para"><p>We saw in part one of the tutorial that commits have names like this.
It turns out that every object in the git history is stored under
-such a 40-digit hex name. That name is the SHA1 hash of the object's
+a 40-digit hex name. That name is the SHA1 hash of the object's
contents; among other things, this ensures that git will never store
the same data twice (since identical data is given an identical SHA1
name), and that the contents of a git object will never change (since
-that would change the object's name as well).</p></div>
+that would change the object's name as well). The 7 char hex strings
+here are simply the abbreviation of such 40 character long strings.
+Abbreviations can be used everywhere where the 40 character strings
+can be used, so long as they are unambiguous.</p></div>
<div class="para"><p>It is expected that the content of the commit object you created while
following the example above generates a different SHA1 hash than
the one shown above because the commit object records the time when
@@ -718,7 +723,7 @@ example, creating a new commit.</p></div>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2008-09-19 06:33:22 UTC
+Last updated 2008-10-18 18:57:34 UTC
</div>
</div>
</body>