Skip to content

Commit

Permalink
Added hello.c sample
Browse files Browse the repository at this point in the history
  • Loading branch information
turon committed Apr 12, 2011
1 parent 32a3a0b commit 8397aca
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 14 additions & 0 deletions hello.c
Original file line number Diff line number Diff line change
@@ -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

@maghiel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.