Permalink
Browse files

Added hello.c sample

  • Loading branch information...
1 parent 32a3a0b commit 8397aca1886102ff386862bc64276df88089c5c7 @turon committed Apr 12, 2011
Showing with 14 additions and 3 deletions.
  1. +0 −3 .gitattributes
  2. +14 −0 hello.c
View
@@ -1,9 +1,6 @@
# .gitattributes
# Map file extensions to git filters
-#
-# $Id$
-*.gitattributes=rcs-keywords
*.h filter=rcs-keywords
*.c filter=rcs-keywords
*.cc filter=rcs-keywords
View
14 hello.c
@@ -0,0 +1,14 @@
+/**
+ * @file hello.c
+ * @author @$Author$
+ * @date @$Date$
+ * @version @$Revision$
+ *
+ * $Id$
+ */
+
+#include "stdio.h"
+
+int main(int argc, char *argv[])
+ printf("Hello, world!");
+}

1 comment on commit 8397aca

Contributor

maghiel commented on 8397aca May 17, 2011

You have a $Revision$ keyword in the hello.c example you've added, but the smudge script does not expand the $Revision$ keyword!

Also, I found that version 1.7.3 is also not enough: the %f parameter is not passed to the smudge script in < 1.7.4

Great work on this project for the rest :)

Please sign in to comment.