From 6fc4cf68a8f9c43ce22ec306d8d1aa26bdb3ec2c Mon Sep 17 00:00:00 2001 From: Loic Giraudel Date: Sun, 2 Aug 2015 23:55:37 +0200 Subject: [PATCH] More examples for git --- examples/prism-git.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/examples/prism-git.html b/examples/prism-git.html index c705c9d2ac..7d37d4b816 100644 --- a/examples/prism-git.html +++ b/examples/prism-git.html @@ -11,3 +11,32 @@

Comments

Inserted and deleted lines

- Some deleted line
 + Some added line
+ +

Diff

+
$ git diff
+diff --git file.txt file.txt
+index 6214953..1d54a52 100644
+--- file.txt
++++ file.txt
+@@ -1 +1,2 @@
+-Here's my tetx file
++Here's my text file
++And this is the second line
+ +

Logs

+
$ git log
+commit a11a14ef7e26f2ca62d4b35eac455ce636d0dc09
+Author: lgiraudel
+Date:   Mon Feb 17 11:18:34 2014 +0100
+
+    Add of a new line
+
+commit 87edc4ad8c71b95f6e46f736eb98b742859abd95
+Author: lgiraudel
+Date:   Mon Feb 17 11:18:15 2014 +0100
+
+    Typo fix
+
+commit 3102416a90c431400d2e2a14e707fb7fd6d9e06d
+Author: lgiraudel
+Date:   Mon Feb 17 10:58:11 2014 +0100
\ No newline at end of file