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