Skip to content

Commit b724fd0

Browse files
peffspearce
authored andcommitted
tutorial: update output of git commit
Commit c85db25 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>
1 parent c85db25 commit b724fd0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Documentation/gittutorial-2.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ Initialized empty Git repository in .git/
3232
$ echo 'hello world' > file.txt
3333
$ git add .
3434
$ 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(-)
3637
create mode 100644 file.txt
3738
$ echo 'hello world!' >file.txt
3839
$ 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(-)
4042
------------------------------------------------
4143

4244
What are the 7 digits of hex that git responded to the commit with?

0 commit comments

Comments
 (0)