Commit 63b52af
pickaxe: merge diffcore_pickaxe_grep() and diffcore_pickaxe_count() into diffcore_pickaxe()
diffcore_pickaxe_count() initializes the regular expression or kwset for
the search term, calls pickaxe() with the callback has_changes() and
cleans up afterwards. diffcore_pickaxe_grep() does the same, only it
doesn't support kwset and uses the callback diff_grep() instead. Merge
the two functions to form the new diffcore_pickaxe() and thus get rid of
the duplicate regex setup and cleanup code.
Signed-off-by: Rene Scharfe <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 218c45a commit 63b52af
1 file changed
+7
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | 111 | | |
135 | 112 | | |
136 | 113 | | |
| |||
227 | 204 | | |
228 | 205 | | |
229 | 206 | | |
230 | | - | |
| 207 | + | |
231 | 208 | | |
232 | 209 | | |
233 | 210 | | |
234 | 211 | | |
235 | 212 | | |
236 | 213 | | |
237 | 214 | | |
238 | | - | |
| 215 | + | |
239 | 216 | | |
240 | 217 | | |
241 | 218 | | |
| |||
256 | 233 | | |
257 | 234 | | |
258 | 235 | | |
259 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
260 | 239 | | |
261 | | - | |
262 | | - | |
| 240 | + | |
| 241 | + | |
263 | 242 | | |
264 | 243 | | |
265 | 244 | | |
266 | 245 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
0 commit comments