Skip to content

Instantly share code, notes, and snippets.

@jvanz
Created January 30, 2016 19:27
Show Gist options
  • Save jvanz/49e8be1b884841f82866 to your computer and use it in GitHub Desktop.
Save jvanz/49e8be1b884841f82866 to your computer and use it in GitHub Desktop.
$git log
commit 8f1b1bc364a8e5ea83ab43ed95c0de026263561d
Author: José Guilherme Vanz <guilherme.sft@gmail.com>
Date: Tue Jan 26 22:43:05 2016 -0200
Changes in bar() function
commit aba1cbab0b427a9e6713f2fe563e2b14db6e51cd
Author: José Guilherme Vanz <guilherme.sft@gmail.com>
Date: Tue Jan 26 20:45:42 2016 -0200
Add commit.c
$ git diff
diff --git a/commit.c b/commit.c
index 9eaf12b..8255080 100644
--- a/commit.c
+++ b/commit.c
@@ -1,15 +1,15 @@
#include
-void foo(void);
+void xpto(void);
void bar(int);
int main(int argc, char **argv)
{
- foo();
+ xpto();
bar(100);
}
-void foo()
+void xpto()
{
printf("Hello, it's foo function here\n");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment