@matheusbsbs / matheus-bagliano / commits / b724fd0944
Fork 0

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>

Jeff King committed Oct 3, 2008 at 22:13 UTC b724fd094496625325dae009170445ef12862f96
1 file changed +4 -2
Documentation/gittutorial-2.txt
+4 -2
@@ -32,11 +32,13 @@ Initialized empty Git repository in .git/
32 $ echo 'hello world' > file.txt
33 $ git add .
34 $ git commit -a -m "initial commit"
35 -Created root-commit 54196cc (initial commit) on master
35 +[master (root-commit)] created 54196cc: "initial commit"
36 + 1 files changed, 1 insertions(+), 0 deletions(-)
37 create mode 100644 file.txt
38 $ echo 'hello world!' >file.txt
39 $ git commit -a -m "add emphasis"
39 -Created c4d59f3 (add emphasis) on master
40 +[master] created c4d59f3: "add emphasis"
41 + 1 files changed, 1 insertions(+), 1 deletions(-)
42 ------------------------------------------------
43
44 What are the 7 digits of hex that git responded to the commit with?