Git fork

t4211: add test cases for SHA-256

There are already files containing example output for SHA-1. Add test
files providing example output for SHA-256 as well and adjust the test
to look up the appropriate ones based on the algorithm in use.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

brian m. carlson and committed by
Junio C Hamano
dfa5f53e f743e8f5

+1263 -1
+2 -1
t/t4211-line-log.sh
··· 4 4 . ./test-lib.sh 5 5 6 6 test_expect_success 'setup (import history)' ' 7 + test_oid_init && 7 8 git fast-import < "$TEST_DIRECTORY"/t4211/history.export && 8 9 git reset --hard 9 10 ' ··· 11 12 canned_test_1 () { 12 13 test_expect_$1 "$2" " 13 14 git log $2 >actual && 14 - test_cmp \"\$TEST_DIRECTORY\"/t4211/sha1/expect.$3 actual 15 + test_cmp \"\$TEST_DIRECTORY\"/t4211/$(test_oid algo)/expect.$3 actual 15 16 " 16 17 } 17 18
+43
t/t4211/sha256/expect.beginning-of-file
··· 1 + commit 62a40b38fa4f00800004aee81ef287b7201317594ebcb990f38cbe493b01d200 2 + Author: Thomas Rast <trast@student.ethz.ch> 3 + Date: Thu Feb 28 10:47:40 2013 +0100 4 + 5 + change at very beginning 6 + 7 + diff --git a/a.c b/a.c 8 + --- a/a.c 9 + +++ b/a.c 10 + @@ -1,3 +1,4 @@ 11 + +#include <unistd.h> 12 + #include <stdio.h> 13 + 14 + long f(long x) 15 + 16 + commit ccf97b9878189c40a981da50b15713bb80a35755326320ec80900caf22ced46f 17 + Author: Thomas Rast <trast@student.ethz.ch> 18 + Date: Thu Feb 28 10:45:16 2013 +0100 19 + 20 + touch both functions 21 + 22 + diff --git a/a.c b/a.c 23 + --- a/a.c 24 + +++ b/a.c 25 + @@ -1,3 +1,3 @@ 26 + #include <stdio.h> 27 + 28 + -int f(int x) 29 + +long f(long x) 30 + 31 + commit 1dd7e9b2b1699324b53b341e728653b913bc192a14dfea168c5b51f2b3d03592 32 + Author: Thomas Rast <trast@student.ethz.ch> 33 + Date: Thu Feb 28 10:44:48 2013 +0100 34 + 35 + initial 36 + 37 + diff --git a/a.c b/a.c 38 + --- /dev/null 39 + +++ b/a.c 40 + @@ -0,0 +1,3 @@ 41 + +#include <stdio.h> 42 + + 43 + +int f(int x)
+62
t/t4211/sha256/expect.end-of-file
··· 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 + --- a/a.c 9 + +++ b/a.c 10 + @@ -20,3 +20,5 @@ 11 + printf("%ld\n", f(15)); 12 + return 0; 13 + -} 14 + \ No newline at end of file 15 + +} 16 + + 17 + +/* incomplete lines are bad! */ 18 + 19 + commit 29f32ac3141c48b22803e5c4127b719917b67d0f8ca8c5248bebfa2a19f7da10 20 + Author: Thomas Rast <trast@student.ethz.ch> 21 + Date: Thu Feb 28 10:48:10 2013 +0100 22 + 23 + change to an incomplete line at end 24 + 25 + diff --git a/a.c b/a.c 26 + --- a/a.c 27 + +++ b/a.c 28 + @@ -20,3 +20,3 @@ 29 + printf("%ld\n", f(15)); 30 + return 0; 31 + -} 32 + +} 33 + \ No newline at end of file 34 + 35 + commit ccf97b9878189c40a981da50b15713bb80a35755326320ec80900caf22ced46f 36 + Author: Thomas Rast <trast@student.ethz.ch> 37 + Date: Thu Feb 28 10:45:16 2013 +0100 38 + 39 + touch both functions 40 + 41 + diff --git a/a.c b/a.c 42 + --- a/a.c 43 + +++ b/a.c 44 + @@ -19,3 +19,3 @@ 45 + - printf("%d\n", f(15)); 46 + + printf("%ld\n", f(15)); 47 + return 0; 48 + } 49 + 50 + commit 1dd7e9b2b1699324b53b341e728653b913bc192a14dfea168c5b51f2b3d03592 51 + Author: Thomas Rast <trast@student.ethz.ch> 52 + Date: Thu Feb 28 10:44:48 2013 +0100 53 + 54 + initial 55 + 56 + diff --git a/a.c b/a.c 57 + --- /dev/null 58 + +++ b/a.c 59 + @@ -0,0 +18,3 @@ 60 + + printf("%d\n", f(15)); 61 + + return 0; 62 + +}
+80
t/t4211/sha256/expect.move-support-f
··· 1 + commit 4f7a58195a92c400e28a2354328587f1ff14fb77f5cf894536f17ccbc72931b9 2 + Author: Thomas Rast <trast@student.ethz.ch> 3 + Date: Thu Feb 28 10:49:50 2013 +0100 4 + 5 + another simple change 6 + 7 + diff --git a/b.c b/b.c 8 + --- a/b.c 9 + +++ b/b.c 10 + @@ -4,9 +4,9 @@ 11 + long f(long x) 12 + { 13 + int s = 0; 14 + while (x) { 15 + - x >>= 1; 16 + + x /= 2; 17 + s++; 18 + } 19 + return s; 20 + } 21 + 22 + commit ccf97b9878189c40a981da50b15713bb80a35755326320ec80900caf22ced46f 23 + Author: Thomas Rast <trast@student.ethz.ch> 24 + Date: Thu Feb 28 10:45:16 2013 +0100 25 + 26 + touch both functions 27 + 28 + diff --git a/a.c b/a.c 29 + --- a/a.c 30 + +++ b/a.c 31 + @@ -3,9 +3,9 @@ 32 + -int f(int x) 33 + +long f(long x) 34 + { 35 + int s = 0; 36 + while (x) { 37 + x >>= 1; 38 + s++; 39 + } 40 + return s; 41 + } 42 + 43 + commit f6434acd34260a6c9f61e96d96bf9a323d330561df5b1ca2631104f82026dfed 44 + Author: Thomas Rast <trast@student.ethz.ch> 45 + Date: Thu Feb 28 10:44:55 2013 +0100 46 + 47 + change f() 48 + 49 + diff --git a/a.c b/a.c 50 + --- a/a.c 51 + +++ b/a.c 52 + @@ -3,8 +3,9 @@ 53 + int f(int x) 54 + { 55 + int s = 0; 56 + while (x) { 57 + x >>= 1; 58 + s++; 59 + } 60 + + return s; 61 + } 62 + 63 + commit 1dd7e9b2b1699324b53b341e728653b913bc192a14dfea168c5b51f2b3d03592 64 + Author: Thomas Rast <trast@student.ethz.ch> 65 + Date: Thu Feb 28 10:44:48 2013 +0100 66 + 67 + initial 68 + 69 + diff --git a/a.c b/a.c 70 + --- /dev/null 71 + +++ b/a.c 72 + @@ -0,0 +3,8 @@ 73 + +int f(int x) 74 + +{ 75 + + int s = 0; 76 + + while (x) { 77 + + x >>= 1; 78 + + s++; 79 + + } 80 + +}
+104
t/t4211/sha256/expect.multiple
··· 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 + --- a/a.c 9 + +++ b/a.c 10 + @@ -18,5 +18,7 @@ 11 + int main () 12 + { 13 + printf("%ld\n", f(15)); 14 + return 0; 15 + -} 16 + \ No newline at end of file 17 + +} 18 + + 19 + +/* incomplete lines are bad! */ 20 + 21 + commit 29f32ac3141c48b22803e5c4127b719917b67d0f8ca8c5248bebfa2a19f7da10 22 + Author: Thomas Rast <trast@student.ethz.ch> 23 + Date: Thu Feb 28 10:48:10 2013 +0100 24 + 25 + change to an incomplete line at end 26 + 27 + diff --git a/a.c b/a.c 28 + --- a/a.c 29 + +++ b/a.c 30 + @@ -18,5 +18,5 @@ 31 + int main () 32 + { 33 + printf("%ld\n", f(15)); 34 + return 0; 35 + -} 36 + +} 37 + \ No newline at end of file 38 + 39 + commit ccf97b9878189c40a981da50b15713bb80a35755326320ec80900caf22ced46f 40 + Author: Thomas Rast <trast@student.ethz.ch> 41 + Date: Thu Feb 28 10:45:16 2013 +0100 42 + 43 + touch both functions 44 + 45 + diff --git a/a.c b/a.c 46 + --- a/a.c 47 + +++ b/a.c 48 + @@ -3,9 +3,9 @@ 49 + -int f(int x) 50 + +long f(long x) 51 + { 52 + int s = 0; 53 + while (x) { 54 + x >>= 1; 55 + s++; 56 + } 57 + return s; 58 + } 59 + @@ -17,5 +17,5 @@ 60 + int main () 61 + { 62 + - printf("%d\n", f(15)); 63 + + printf("%ld\n", f(15)); 64 + return 0; 65 + } 66 + 67 + commit f6434acd34260a6c9f61e96d96bf9a323d330561df5b1ca2631104f82026dfed 68 + Author: Thomas Rast <trast@student.ethz.ch> 69 + Date: Thu Feb 28 10:44:55 2013 +0100 70 + 71 + change f() 72 + 73 + diff --git a/a.c b/a.c 74 + --- a/a.c 75 + +++ b/a.c 76 + @@ -3,8 +3,9 @@ 77 + int f(int x) 78 + { 79 + int s = 0; 80 + while (x) { 81 + x >>= 1; 82 + s++; 83 + } 84 + + return s; 85 + } 86 + 87 + commit 1dd7e9b2b1699324b53b341e728653b913bc192a14dfea168c5b51f2b3d03592 88 + Author: Thomas Rast <trast@student.ethz.ch> 89 + Date: Thu Feb 28 10:44:48 2013 +0100 90 + 91 + initial 92 + 93 + diff --git a/a.c b/a.c 94 + --- /dev/null 95 + +++ b/a.c 96 + @@ -0,0 +3,8 @@ 97 + +int f(int x) 98 + +{ 99 + + int s = 0; 100 + + while (x) { 101 + + x >>= 1; 102 + + s++; 103 + + } 104 + +}
+187
t/t4211/sha256/expect.multiple-overlapping
··· 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 + --- a/a.c 9 + +++ b/a.c 10 + @@ -4,19 +4,21 @@ 11 + long f(long x) 12 + { 13 + int s = 0; 14 + while (x) { 15 + x >>= 1; 16 + s++; 17 + } 18 + return s; 19 + } 20 + 21 + /* 22 + * This is only an example! 23 + */ 24 + 25 + int main () 26 + { 27 + printf("%ld\n", f(15)); 28 + return 0; 29 + -} 30 + \ No newline at end of file 31 + +} 32 + + 33 + +/* incomplete lines are bad! */ 34 + 35 + commit 29f32ac3141c48b22803e5c4127b719917b67d0f8ca8c5248bebfa2a19f7da10 36 + Author: Thomas Rast <trast@student.ethz.ch> 37 + Date: Thu Feb 28 10:48:10 2013 +0100 38 + 39 + change to an incomplete line at end 40 + 41 + diff --git a/a.c b/a.c 42 + --- a/a.c 43 + +++ b/a.c 44 + @@ -4,19 +4,19 @@ 45 + long f(long x) 46 + { 47 + int s = 0; 48 + while (x) { 49 + x >>= 1; 50 + s++; 51 + } 52 + return s; 53 + } 54 + 55 + /* 56 + * This is only an example! 57 + */ 58 + 59 + int main () 60 + { 61 + printf("%ld\n", f(15)); 62 + return 0; 63 + -} 64 + +} 65 + \ No newline at end of file 66 + 67 + commit 5a1b3989063d55e71e7685efa3392f133385b4034bddde530dcb5090d8b8b8ca 68 + Author: Thomas Rast <trast@student.ethz.ch> 69 + Date: Thu Feb 28 10:45:41 2013 +0100 70 + 71 + touch comment 72 + 73 + diff --git a/a.c b/a.c 74 + --- a/a.c 75 + +++ b/a.c 76 + @@ -3,19 +3,19 @@ 77 + long f(long x) 78 + { 79 + int s = 0; 80 + while (x) { 81 + x >>= 1; 82 + s++; 83 + } 84 + return s; 85 + } 86 + 87 + /* 88 + - * A comment. 89 + + * This is only an example! 90 + */ 91 + 92 + int main () 93 + { 94 + printf("%ld\n", f(15)); 95 + return 0; 96 + } 97 + 98 + commit ccf97b9878189c40a981da50b15713bb80a35755326320ec80900caf22ced46f 99 + Author: Thomas Rast <trast@student.ethz.ch> 100 + Date: Thu Feb 28 10:45:16 2013 +0100 101 + 102 + touch both functions 103 + 104 + diff --git a/a.c b/a.c 105 + --- a/a.c 106 + +++ b/a.c 107 + @@ -3,19 +3,19 @@ 108 + -int f(int x) 109 + +long f(long x) 110 + { 111 + int s = 0; 112 + while (x) { 113 + x >>= 1; 114 + s++; 115 + } 116 + return s; 117 + } 118 + 119 + /* 120 + * A comment. 121 + */ 122 + 123 + int main () 124 + { 125 + - printf("%d\n", f(15)); 126 + + printf("%ld\n", f(15)); 127 + return 0; 128 + } 129 + 130 + commit f6434acd34260a6c9f61e96d96bf9a323d330561df5b1ca2631104f82026dfed 131 + Author: Thomas Rast <trast@student.ethz.ch> 132 + Date: Thu Feb 28 10:44:55 2013 +0100 133 + 134 + change f() 135 + 136 + diff --git a/a.c b/a.c 137 + --- a/a.c 138 + +++ b/a.c 139 + @@ -3,18 +3,19 @@ 140 + int f(int x) 141 + { 142 + int s = 0; 143 + while (x) { 144 + x >>= 1; 145 + s++; 146 + } 147 + + return s; 148 + } 149 + 150 + /* 151 + * A comment. 152 + */ 153 + 154 + int main () 155 + { 156 + printf("%d\n", f(15)); 157 + return 0; 158 + } 159 + 160 + commit 1dd7e9b2b1699324b53b341e728653b913bc192a14dfea168c5b51f2b3d03592 161 + Author: Thomas Rast <trast@student.ethz.ch> 162 + Date: Thu Feb 28 10:44:48 2013 +0100 163 + 164 + initial 165 + 166 + diff --git a/a.c b/a.c 167 + --- /dev/null 168 + +++ b/a.c 169 + @@ -0,0 +3,18 @@ 170 + +int f(int x) 171 + +{ 172 + + int s = 0; 173 + + while (x) { 174 + + x >>= 1; 175 + + s++; 176 + + } 177 + +} 178 + + 179 + +/* 180 + + * A comment. 181 + + */ 182 + + 183 + +int main () 184 + +{ 185 + + printf("%d\n", f(15)); 186 + + return 0; 187 + +}
+187
t/t4211/sha256/expect.multiple-superset
··· 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 + --- a/a.c 9 + +++ b/a.c 10 + @@ -4,19 +4,21 @@ 11 + long f(long x) 12 + { 13 + int s = 0; 14 + while (x) { 15 + x >>= 1; 16 + s++; 17 + } 18 + return s; 19 + } 20 + 21 + /* 22 + * This is only an example! 23 + */ 24 + 25 + int main () 26 + { 27 + printf("%ld\n", f(15)); 28 + return 0; 29 + -} 30 + \ No newline at end of file 31 + +} 32 + + 33 + +/* incomplete lines are bad! */ 34 + 35 + commit 29f32ac3141c48b22803e5c4127b719917b67d0f8ca8c5248bebfa2a19f7da10 36 + Author: Thomas Rast <trast@student.ethz.ch> 37 + Date: Thu Feb 28 10:48:10 2013 +0100 38 + 39 + change to an incomplete line at end 40 + 41 + diff --git a/a.c b/a.c 42 + --- a/a.c 43 + +++ b/a.c 44 + @@ -4,19 +4,19 @@ 45 + long f(long x) 46 + { 47 + int s = 0; 48 + while (x) { 49 + x >>= 1; 50 + s++; 51 + } 52 + return s; 53 + } 54 + 55 + /* 56 + * This is only an example! 57 + */ 58 + 59 + int main () 60 + { 61 + printf("%ld\n", f(15)); 62 + return 0; 63 + -} 64 + +} 65 + \ No newline at end of file 66 + 67 + commit 5a1b3989063d55e71e7685efa3392f133385b4034bddde530dcb5090d8b8b8ca 68 + Author: Thomas Rast <trast@student.ethz.ch> 69 + Date: Thu Feb 28 10:45:41 2013 +0100 70 + 71 + touch comment 72 + 73 + diff --git a/a.c b/a.c 74 + --- a/a.c 75 + +++ b/a.c 76 + @@ -3,19 +3,19 @@ 77 + long f(long x) 78 + { 79 + int s = 0; 80 + while (x) { 81 + x >>= 1; 82 + s++; 83 + } 84 + return s; 85 + } 86 + 87 + /* 88 + - * A comment. 89 + + * This is only an example! 90 + */ 91 + 92 + int main () 93 + { 94 + printf("%ld\n", f(15)); 95 + return 0; 96 + } 97 + 98 + commit ccf97b9878189c40a981da50b15713bb80a35755326320ec80900caf22ced46f 99 + Author: Thomas Rast <trast@student.ethz.ch> 100 + Date: Thu Feb 28 10:45:16 2013 +0100 101 + 102 + touch both functions 103 + 104 + diff --git a/a.c b/a.c 105 + --- a/a.c 106 + +++ b/a.c 107 + @@ -3,19 +3,19 @@ 108 + -int f(int x) 109 + +long f(long x) 110 + { 111 + int s = 0; 112 + while (x) { 113 + x >>= 1; 114 + s++; 115 + } 116 + return s; 117 + } 118 + 119 + /* 120 + * A comment. 121 + */ 122 + 123 + int main () 124 + { 125 + - printf("%d\n", f(15)); 126 + + printf("%ld\n", f(15)); 127 + return 0; 128 + } 129 + 130 + commit f6434acd34260a6c9f61e96d96bf9a323d330561df5b1ca2631104f82026dfed 131 + Author: Thomas Rast <trast@student.ethz.ch> 132 + Date: Thu Feb 28 10:44:55 2013 +0100 133 + 134 + change f() 135 + 136 + diff --git a/a.c b/a.c 137 + --- a/a.c 138 + +++ b/a.c 139 + @@ -3,18 +3,19 @@ 140 + int f(int x) 141 + { 142 + int s = 0; 143 + while (x) { 144 + x >>= 1; 145 + s++; 146 + } 147 + + return s; 148 + } 149 + 150 + /* 151 + * A comment. 152 + */ 153 + 154 + int main () 155 + { 156 + printf("%d\n", f(15)); 157 + return 0; 158 + } 159 + 160 + commit 1dd7e9b2b1699324b53b341e728653b913bc192a14dfea168c5b51f2b3d03592 161 + Author: Thomas Rast <trast@student.ethz.ch> 162 + Date: Thu Feb 28 10:44:48 2013 +0100 163 + 164 + initial 165 + 166 + diff --git a/a.c b/a.c 167 + --- /dev/null 168 + +++ b/a.c 169 + @@ -0,0 +3,18 @@ 170 + +int f(int x) 171 + +{ 172 + + int s = 0; 173 + + while (x) { 174 + + x >>= 1; 175 + + s++; 176 + + } 177 + +} 178 + + 179 + +/* 180 + + * A comment. 181 + + */ 182 + + 183 + +int main () 184 + +{ 185 + + printf("%d\n", f(15)); 186 + + return 0; 187 + +}
+160
t/t4211/sha256/expect.parallel-change-f-to-main
··· 1 + commit 98117c2059b76c36995748fb97b02542aef477fe26379e94c18fd70f7790bc67 2 + Merge: b511694 4f7a581 3 + Author: Thomas Rast <trast@inf.ethz.ch> 4 + Date: Fri Apr 12 16:16:24 2013 +0200 5 + 6 + Merge across the rename 7 + 8 + 9 + commit 4f7a58195a92c400e28a2354328587f1ff14fb77f5cf894536f17ccbc72931b9 10 + Author: Thomas Rast <trast@student.ethz.ch> 11 + Date: Thu Feb 28 10:49:50 2013 +0100 12 + 13 + another simple change 14 + 15 + diff --git a/b.c b/b.c 16 + --- a/b.c 17 + +++ b/b.c 18 + @@ -4,14 +4,14 @@ 19 + long f(long x) 20 + { 21 + int s = 0; 22 + while (x) { 23 + - x >>= 1; 24 + + x /= 2; 25 + s++; 26 + } 27 + return s; 28 + } 29 + 30 + /* 31 + * This is only an example! 32 + */ 33 + 34 + 35 + commit b511694f5337663fbd697622993a5f8e1099eca84be4df313f2b3ee94a098b42 36 + Author: Thomas Rast <trast@inf.ethz.ch> 37 + Date: Fri Apr 12 16:15:57 2013 +0200 38 + 39 + change on another line of history while rename happens 40 + 41 + diff --git a/a.c b/a.c 42 + --- a/a.c 43 + +++ b/a.c 44 + @@ -4,14 +4,14 @@ 45 + long f(long x) 46 + { 47 + int s = 0; 48 + while (x) { 49 + x >>= 1; 50 + s++; 51 + } 52 + return s; 53 + } 54 + 55 + /* 56 + - * This is only an example! 57 + + * This is only a short example! 58 + */ 59 + 60 + 61 + commit 5a1b3989063d55e71e7685efa3392f133385b4034bddde530dcb5090d8b8b8ca 62 + Author: Thomas Rast <trast@student.ethz.ch> 63 + Date: Thu Feb 28 10:45:41 2013 +0100 64 + 65 + touch comment 66 + 67 + diff --git a/a.c b/a.c 68 + --- a/a.c 69 + +++ b/a.c 70 + @@ -3,14 +3,14 @@ 71 + long f(long x) 72 + { 73 + int s = 0; 74 + while (x) { 75 + x >>= 1; 76 + s++; 77 + } 78 + return s; 79 + } 80 + 81 + /* 82 + - * A comment. 83 + + * This is only an example! 84 + */ 85 + 86 + 87 + commit ccf97b9878189c40a981da50b15713bb80a35755326320ec80900caf22ced46f 88 + Author: Thomas Rast <trast@student.ethz.ch> 89 + Date: Thu Feb 28 10:45:16 2013 +0100 90 + 91 + touch both functions 92 + 93 + diff --git a/a.c b/a.c 94 + --- a/a.c 95 + +++ b/a.c 96 + @@ -3,14 +3,14 @@ 97 + -int f(int x) 98 + +long f(long x) 99 + { 100 + int s = 0; 101 + while (x) { 102 + x >>= 1; 103 + s++; 104 + } 105 + return s; 106 + } 107 + 108 + /* 109 + * A comment. 110 + */ 111 + 112 + 113 + commit f6434acd34260a6c9f61e96d96bf9a323d330561df5b1ca2631104f82026dfed 114 + Author: Thomas Rast <trast@student.ethz.ch> 115 + Date: Thu Feb 28 10:44:55 2013 +0100 116 + 117 + change f() 118 + 119 + diff --git a/a.c b/a.c 120 + --- a/a.c 121 + +++ b/a.c 122 + @@ -3,13 +3,14 @@ 123 + int f(int x) 124 + { 125 + int s = 0; 126 + while (x) { 127 + x >>= 1; 128 + s++; 129 + } 130 + + return s; 131 + } 132 + 133 + /* 134 + * A comment. 135 + */ 136 + 137 + 138 + commit 1dd7e9b2b1699324b53b341e728653b913bc192a14dfea168c5b51f2b3d03592 139 + Author: Thomas Rast <trast@student.ethz.ch> 140 + Date: Thu Feb 28 10:44:48 2013 +0100 141 + 142 + initial 143 + 144 + diff --git a/a.c b/a.c 145 + --- /dev/null 146 + +++ b/a.c 147 + @@ -0,0 +3,13 @@ 148 + +int f(int x) 149 + +{ 150 + + int s = 0; 151 + + while (x) { 152 + + x >>= 1; 153 + + s++; 154 + + } 155 + +} 156 + + 157 + +/* 158 + + * A comment. 159 + + */ 160 + +
+59
t/t4211/sha256/expect.simple-f
··· 1 + commit ccf97b9878189c40a981da50b15713bb80a35755326320ec80900caf22ced46f 2 + Author: Thomas Rast <trast@student.ethz.ch> 3 + Date: Thu Feb 28 10:45:16 2013 +0100 4 + 5 + touch both functions 6 + 7 + diff --git a/a.c b/a.c 8 + --- a/a.c 9 + +++ b/a.c 10 + @@ -3,9 +3,9 @@ 11 + -int f(int x) 12 + +long f(long x) 13 + { 14 + int s = 0; 15 + while (x) { 16 + x >>= 1; 17 + s++; 18 + } 19 + return s; 20 + } 21 + 22 + commit f6434acd34260a6c9f61e96d96bf9a323d330561df5b1ca2631104f82026dfed 23 + Author: Thomas Rast <trast@student.ethz.ch> 24 + Date: Thu Feb 28 10:44:55 2013 +0100 25 + 26 + change f() 27 + 28 + diff --git a/a.c b/a.c 29 + --- a/a.c 30 + +++ b/a.c 31 + @@ -3,8 +3,9 @@ 32 + int f(int x) 33 + { 34 + int s = 0; 35 + while (x) { 36 + x >>= 1; 37 + s++; 38 + } 39 + + return s; 40 + } 41 + 42 + commit 1dd7e9b2b1699324b53b341e728653b913bc192a14dfea168c5b51f2b3d03592 43 + Author: Thomas Rast <trast@student.ethz.ch> 44 + Date: Thu Feb 28 10:44:48 2013 +0100 45 + 46 + initial 47 + 48 + diff --git a/a.c b/a.c 49 + --- /dev/null 50 + +++ b/a.c 51 + @@ -0,0 +3,8 @@ 52 + +int f(int x) 53 + +{ 54 + + int s = 0; 55 + + while (x) { 56 + + x >>= 1; 57 + + s++; 58 + + } 59 + +}
+100
t/t4211/sha256/expect.simple-f-to-main
··· 1 + commit 5a1b3989063d55e71e7685efa3392f133385b4034bddde530dcb5090d8b8b8ca 2 + Author: Thomas Rast <trast@student.ethz.ch> 3 + Date: Thu Feb 28 10:45:41 2013 +0100 4 + 5 + touch comment 6 + 7 + diff --git a/a.c b/a.c 8 + --- a/a.c 9 + +++ b/a.c 10 + @@ -3,14 +3,14 @@ 11 + long f(long x) 12 + { 13 + int s = 0; 14 + while (x) { 15 + x >>= 1; 16 + s++; 17 + } 18 + return s; 19 + } 20 + 21 + /* 22 + - * A comment. 23 + + * This is only an example! 24 + */ 25 + 26 + 27 + commit ccf97b9878189c40a981da50b15713bb80a35755326320ec80900caf22ced46f 28 + Author: Thomas Rast <trast@student.ethz.ch> 29 + Date: Thu Feb 28 10:45:16 2013 +0100 30 + 31 + touch both functions 32 + 33 + diff --git a/a.c b/a.c 34 + --- a/a.c 35 + +++ b/a.c 36 + @@ -3,14 +3,14 @@ 37 + -int f(int x) 38 + +long f(long x) 39 + { 40 + int s = 0; 41 + while (x) { 42 + x >>= 1; 43 + s++; 44 + } 45 + return s; 46 + } 47 + 48 + /* 49 + * A comment. 50 + */ 51 + 52 + 53 + commit f6434acd34260a6c9f61e96d96bf9a323d330561df5b1ca2631104f82026dfed 54 + Author: Thomas Rast <trast@student.ethz.ch> 55 + Date: Thu Feb 28 10:44:55 2013 +0100 56 + 57 + change f() 58 + 59 + diff --git a/a.c b/a.c 60 + --- a/a.c 61 + +++ b/a.c 62 + @@ -3,13 +3,14 @@ 63 + int f(int x) 64 + { 65 + int s = 0; 66 + while (x) { 67 + x >>= 1; 68 + s++; 69 + } 70 + + return s; 71 + } 72 + 73 + /* 74 + * A comment. 75 + */ 76 + 77 + 78 + commit 1dd7e9b2b1699324b53b341e728653b913bc192a14dfea168c5b51f2b3d03592 79 + Author: Thomas Rast <trast@student.ethz.ch> 80 + Date: Thu Feb 28 10:44:48 2013 +0100 81 + 82 + initial 83 + 84 + diff --git a/a.c b/a.c 85 + --- /dev/null 86 + +++ b/a.c 87 + @@ -0,0 +3,13 @@ 88 + +int f(int x) 89 + +{ 90 + + int s = 0; 91 + + while (x) { 92 + + x >>= 1; 93 + + s++; 94 + + } 95 + +} 96 + + 97 + +/* 98 + + * A comment. 99 + + */ 100 + +
+68
t/t4211/sha256/expect.simple-main
··· 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 + --- a/a.c 9 + +++ b/a.c 10 + @@ -18,5 +18,5 @@ 11 + int main () 12 + { 13 + printf("%ld\n", f(15)); 14 + return 0; 15 + -} 16 + \ No newline at end of file 17 + +} 18 + 19 + commit 29f32ac3141c48b22803e5c4127b719917b67d0f8ca8c5248bebfa2a19f7da10 20 + Author: Thomas Rast <trast@student.ethz.ch> 21 + Date: Thu Feb 28 10:48:10 2013 +0100 22 + 23 + change to an incomplete line at end 24 + 25 + diff --git a/a.c b/a.c 26 + --- a/a.c 27 + +++ b/a.c 28 + @@ -18,5 +18,5 @@ 29 + int main () 30 + { 31 + printf("%ld\n", f(15)); 32 + return 0; 33 + -} 34 + +} 35 + \ No newline at end of file 36 + 37 + commit ccf97b9878189c40a981da50b15713bb80a35755326320ec80900caf22ced46f 38 + Author: Thomas Rast <trast@student.ethz.ch> 39 + Date: Thu Feb 28 10:45:16 2013 +0100 40 + 41 + touch both functions 42 + 43 + diff --git a/a.c b/a.c 44 + --- a/a.c 45 + +++ b/a.c 46 + @@ -17,5 +17,5 @@ 47 + int main () 48 + { 49 + - printf("%d\n", f(15)); 50 + + printf("%ld\n", f(15)); 51 + return 0; 52 + } 53 + 54 + commit 1dd7e9b2b1699324b53b341e728653b913bc192a14dfea168c5b51f2b3d03592 55 + Author: Thomas Rast <trast@student.ethz.ch> 56 + Date: Thu Feb 28 10:44:48 2013 +0100 57 + 58 + initial 59 + 60 + diff --git a/a.c b/a.c 61 + --- /dev/null 62 + +++ b/a.c 63 + @@ -0,0 +16,5 @@ 64 + +int main () 65 + +{ 66 + + printf("%d\n", f(15)); 67 + + return 0; 68 + +}
+70
t/t4211/sha256/expect.simple-main-to-end
··· 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 + --- a/a.c 9 + +++ b/a.c 10 + @@ -18,5 +18,7 @@ 11 + int main () 12 + { 13 + printf("%ld\n", f(15)); 14 + return 0; 15 + -} 16 + \ No newline at end of file 17 + +} 18 + + 19 + +/* incomplete lines are bad! */ 20 + 21 + commit 29f32ac3141c48b22803e5c4127b719917b67d0f8ca8c5248bebfa2a19f7da10 22 + Author: Thomas Rast <trast@student.ethz.ch> 23 + Date: Thu Feb 28 10:48:10 2013 +0100 24 + 25 + change to an incomplete line at end 26 + 27 + diff --git a/a.c b/a.c 28 + --- a/a.c 29 + +++ b/a.c 30 + @@ -18,5 +18,5 @@ 31 + int main () 32 + { 33 + printf("%ld\n", f(15)); 34 + return 0; 35 + -} 36 + +} 37 + \ No newline at end of file 38 + 39 + commit ccf97b9878189c40a981da50b15713bb80a35755326320ec80900caf22ced46f 40 + Author: Thomas Rast <trast@student.ethz.ch> 41 + Date: Thu Feb 28 10:45:16 2013 +0100 42 + 43 + touch both functions 44 + 45 + diff --git a/a.c b/a.c 46 + --- a/a.c 47 + +++ b/a.c 48 + @@ -17,5 +17,5 @@ 49 + int main () 50 + { 51 + - printf("%d\n", f(15)); 52 + + printf("%ld\n", f(15)); 53 + return 0; 54 + } 55 + 56 + commit 1dd7e9b2b1699324b53b341e728653b913bc192a14dfea168c5b51f2b3d03592 57 + Author: Thomas Rast <trast@student.ethz.ch> 58 + Date: Thu Feb 28 10:44:48 2013 +0100 59 + 60 + initial 61 + 62 + diff --git a/a.c b/a.c 63 + --- /dev/null 64 + +++ b/a.c 65 + @@ -0,0 +16,5 @@ 66 + +int main () 67 + +{ 68 + + printf("%d\n", f(15)); 69 + + return 0; 70 + +}
+102
t/t4211/sha256/expect.two-ranges
··· 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 + --- a/a.c 9 + +++ b/a.c 10 + @@ -18,5 +18,5 @@ 11 + int main () 12 + { 13 + printf("%ld\n", f(15)); 14 + return 0; 15 + -} 16 + \ No newline at end of file 17 + +} 18 + 19 + commit 29f32ac3141c48b22803e5c4127b719917b67d0f8ca8c5248bebfa2a19f7da10 20 + Author: Thomas Rast <trast@student.ethz.ch> 21 + Date: Thu Feb 28 10:48:10 2013 +0100 22 + 23 + change to an incomplete line at end 24 + 25 + diff --git a/a.c b/a.c 26 + --- a/a.c 27 + +++ b/a.c 28 + @@ -18,5 +18,5 @@ 29 + int main () 30 + { 31 + printf("%ld\n", f(15)); 32 + return 0; 33 + -} 34 + +} 35 + \ No newline at end of file 36 + 37 + commit ccf97b9878189c40a981da50b15713bb80a35755326320ec80900caf22ced46f 38 + Author: Thomas Rast <trast@student.ethz.ch> 39 + Date: Thu Feb 28 10:45:16 2013 +0100 40 + 41 + touch both functions 42 + 43 + diff --git a/a.c b/a.c 44 + --- a/a.c 45 + +++ b/a.c 46 + @@ -3,9 +3,9 @@ 47 + -int f(int x) 48 + +long f(long x) 49 + { 50 + int s = 0; 51 + while (x) { 52 + x >>= 1; 53 + s++; 54 + } 55 + return s; 56 + } 57 + @@ -17,5 +17,5 @@ 58 + int main () 59 + { 60 + - printf("%d\n", f(15)); 61 + + printf("%ld\n", f(15)); 62 + return 0; 63 + } 64 + 65 + commit f6434acd34260a6c9f61e96d96bf9a323d330561df5b1ca2631104f82026dfed 66 + Author: Thomas Rast <trast@student.ethz.ch> 67 + Date: Thu Feb 28 10:44:55 2013 +0100 68 + 69 + change f() 70 + 71 + diff --git a/a.c b/a.c 72 + --- a/a.c 73 + +++ b/a.c 74 + @@ -3,8 +3,9 @@ 75 + int f(int x) 76 + { 77 + int s = 0; 78 + while (x) { 79 + x >>= 1; 80 + s++; 81 + } 82 + + return s; 83 + } 84 + 85 + commit 1dd7e9b2b1699324b53b341e728653b913bc192a14dfea168c5b51f2b3d03592 86 + Author: Thomas Rast <trast@student.ethz.ch> 87 + Date: Thu Feb 28 10:44:48 2013 +0100 88 + 89 + initial 90 + 91 + diff --git a/a.c b/a.c 92 + --- /dev/null 93 + +++ b/a.c 94 + @@ -0,0 +3,8 @@ 95 + +int f(int x) 96 + +{ 97 + + int s = 0; 98 + + while (x) { 99 + + x >>= 1; 100 + + s++; 101 + + } 102 + +}
+39
t/t4211/sha256/expect.vanishes-early
··· 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 + --- a/a.c 9 + +++ b/a.c 10 + @@ -22,1 +24,1 @@ 11 + -} 12 + \ No newline at end of file 13 + +/* incomplete lines are bad! */ 14 + 15 + commit 29f32ac3141c48b22803e5c4127b719917b67d0f8ca8c5248bebfa2a19f7da10 16 + Author: Thomas Rast <trast@student.ethz.ch> 17 + Date: Thu Feb 28 10:48:10 2013 +0100 18 + 19 + change to an incomplete line at end 20 + 21 + diff --git a/a.c b/a.c 22 + --- a/a.c 23 + +++ b/a.c 24 + @@ -22,1 +22,1 @@ 25 + -} 26 + +} 27 + \ No newline at end of file 28 + 29 + commit 1dd7e9b2b1699324b53b341e728653b913bc192a14dfea168c5b51f2b3d03592 30 + Author: Thomas Rast <trast@student.ethz.ch> 31 + Date: Thu Feb 28 10:44:48 2013 +0100 32 + 33 + initial 34 + 35 + diff --git a/a.c b/a.c 36 + --- /dev/null 37 + +++ b/a.c 38 + @@ -0,0 +20,1 @@ 39 + +}