| 1 |
commit eb871b8aa9aff323e484723039c9a92ab0266e060bc0ef2afb08fadda25c5ace |
| 2 |
Author: Thomas Rast <[email protected]> |
| 3 |
Date: Thu Feb 28 10:50:24 2013 +0100 |
| 4 |
|
| 5 |
move within the file |
| 6 |
|
| 7 |
diff --git a/b.c b/b.c |
| 8 |
index 69cb69c..a0d566e 100644 |
| 9 |
--- a/b.c |
| 10 |
+++ b/b.c |
| 11 |
@@ -25,0 +18,9 @@ |
| 12 |
+long f(long x) |
| 13 |
+{ |
| 14 |
+ int s = 0; |
| 15 |
+ while (x) { |
| 16 |
+ x /= 2; |
| 17 |
+ s++; |
| 18 |
+ } |
| 19 |
+ return s; |
| 20 |
+} |
| 21 |
|
| 22 |
commit 5526ed05c2476b56af8b7be499e8f78bd50f490740733a9ca7e1f55878fa90a9 |
| 23 |
Author: Thomas Rast <[email protected]> |
| 24 |
Date: Thu Feb 28 10:48:43 2013 +0100 |
| 25 |
|
| 26 |
change back to complete line |
| 27 |
|
| 28 |
diff --git a/a.c b/a.c |
| 29 |
index e4fa1d8..62c1fc2 100644 |
| 30 |
--- a/a.c |
| 31 |
+++ b/a.c |
| 32 |
@@ -18,5 +18,7 @@ long f(long x) |
| 33 |
int main () |
| 34 |
{ |
| 35 |
printf("%ld\n", f(15)); |
| 36 |
return 0; |
| 37 |
-} |
| 38 |
\ No newline at end of file |
| 39 |
+} |
| 40 |
+ |
| 41 |
+/* incomplete lines are bad! */ |
| 42 |
|
| 43 |
commit 29f32ac3141c48b22803e5c4127b719917b67d0f8ca8c5248bebfa2a19f7da10 |
| 44 |
Author: Thomas Rast <[email protected]> |
| 45 |
Date: Thu Feb 28 10:48:10 2013 +0100 |
| 46 |
|
| 47 |
change to an incomplete line at end |
| 48 |
|
| 49 |
diff --git a/a.c b/a.c |
| 50 |
index d325124..e4fa1d8 100644 |
| 51 |
--- a/a.c |
| 52 |
+++ b/a.c |
| 53 |
@@ -18,5 +18,5 @@ long f(long x) |
| 54 |
int main () |
| 55 |
{ |
| 56 |
printf("%ld\n", f(15)); |
| 57 |
return 0; |
| 58 |
-} |
| 59 |
+} |
| 60 |
\ No newline at end of file |
| 61 |
|
| 62 |
commit ccf97b9878189c40a981da50b15713bb80a35755326320ec80900caf22ced46f |
| 63 |
Author: Thomas Rast <[email protected]> |
| 64 |
Date: Thu Feb 28 10:45:16 2013 +0100 |
| 65 |
|
| 66 |
touch both functions |
| 67 |
|
| 68 |
diff --git a/a.c b/a.c |
| 69 |
index 7a296b9..75c0119 100644 |
| 70 |
--- a/a.c |
| 71 |
+++ b/a.c |
| 72 |
@@ -17,5 +17,5 @@ int f(int x) |
| 73 |
int main () |
| 74 |
{ |
| 75 |
- printf("%d\n", f(15)); |
| 76 |
+ printf("%ld\n", f(15)); |
| 77 |
return 0; |
| 78 |
} |
| 79 |
|
| 80 |
commit 1dd7e9b2b1699324b53b341e728653b913bc192a14dfea168c5b51f2b3d03592 |
| 81 |
Author: Thomas Rast <[email protected]> |
| 82 |
Date: Thu Feb 28 10:44:48 2013 +0100 |
| 83 |
|
| 84 |
initial |
| 85 |
|
| 86 |
diff --git a/a.c b/a.c |
| 87 |
new file mode 100644 |
| 88 |
index 0000000..9f550c3 |
| 89 |
--- /dev/null |
| 90 |
+++ b/a.c |
| 91 |
@@ -0,0 +16,5 @@ |
| 92 |
+int main () |
| 93 |
+{ |
| 94 |
+ printf("%d\n", f(15)); |
| 95 |
+ return 0; |
| 96 |
+} |