aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/gittutorial-2.txt
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2008-10-03 22:13:49 -0400
committerShawn O. Pearce <spearce@spearce.org>2008-10-06 00:04:24 -0700
commitb724fd094496625325dae009170445ef12862f96 (patch)
tree039e7e3aac51f7371a42796c5cd06be58b4eb105 /Documentation/gittutorial-2.txt
parentc85db254d9d3309bb330444385dbb3b7be5100d3 (diff)
downloadgit-b724fd094496625325dae009170445ef12862f96.tar.gz
tutorial: update output of git commit
Commit c85db254 changed the format of the message produced by "git commit" when creating a commit. This patch updates the example session in the tutorial to the new format. It also adds in the missing diffstat summary lines, which should have been added long ago. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'Documentation/gittutorial-2.txt')
-rw-r--r--Documentation/gittutorial-2.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/gittutorial-2.txt b/Documentation/gittutorial-2.txt
index 8484e7a026..bab0f34b45 100644
--- a/Documentation/gittutorial-2.txt
+++ b/Documentation/gittutorial-2.txt
@@ -32,11 +32,13 @@ Initialized empty Git repository in .git/
$ echo 'hello world' > file.txt
$ git add .
$ git commit -a -m "initial commit"
-Created root-commit 54196cc (initial commit) on master
+[master (root-commit)] created 54196cc: "initial commit"
+ 1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 file.txt
$ echo 'hello world!' >file.txt
$ git commit -a -m "add emphasis"
-Created c4d59f3 (add emphasis) on master
+[master] created c4d59f3: "add emphasis"
+ 1 files changed, 1 insertions(+), 1 deletions(-)
------------------------------------------------
What are the 7 digits of hex that git responded to the commit with?