Commit 2766ce2
filter-branch: Use rev-list arguments to specify revision ranges.
A subset of commits in a branch used to be specified by options (-k, -r)
as well as the branch tip itself (-s). It is more natural (for git users)
to specify revision ranges like 'master..next' instead. This makes it so.
If no range is specified it defaults to 'HEAD'.
As a consequence, the new name of the filtered branch must be the first
non-option argument. All remaining arguments are passed to 'git rev-list'
unmodified.
The tip of the branch that gets filtered is implied: It is the first
commit that git rev-list would print for the specified range.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Acked-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 9840906 commit 2766ce2
2 files changed
+13
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 45 | | |
55 | 46 | | |
56 | 47 | | |
| |||
164 | 155 | | |
165 | 156 | | |
166 | 157 | | |
167 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
168 | 163 | | |
169 | 164 | | |
170 | 165 | | |
171 | 166 | | |
172 | 167 | | |
173 | 168 | | |
174 | | - | |
| 169 | + | |
175 | 170 | | |
176 | | - | |
| 171 | + | |
177 | 172 | | |
178 | 173 | | |
179 | 174 | | |
180 | | - | |
181 | | - | |
| 175 | + | |
| 176 | + | |
182 | 177 | | |
183 | 178 | | |
184 | 179 | | |
185 | 180 | | |
186 | 181 | | |
187 | | - | |
| 182 | + | |
188 | 183 | | |
189 | 184 | | |
190 | 185 | | |
| |||
232 | 227 | | |
233 | 228 | | |
234 | 229 | | |
235 | | - | |
236 | 230 | | |
237 | 231 | | |
238 | 232 | | |
239 | 233 | | |
240 | 234 | | |
241 | 235 | | |
242 | 236 | | |
243 | | - | |
244 | 237 | | |
245 | 238 | | |
246 | 239 | | |
| |||
265 | 258 | | |
266 | 259 | | |
267 | 260 | | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | 261 | | |
275 | 262 | | |
276 | 263 | | |
| |||
292 | 279 | | |
293 | 280 | | |
294 | 281 | | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | 282 | | |
299 | 283 | | |
300 | 284 | | |
301 | 285 | | |
302 | 286 | | |
303 | 287 | | |
304 | 288 | | |
| 289 | + | |
305 | 290 | | |
306 | 291 | | |
307 | 292 | | |
| |||
327 | 312 | | |
328 | 313 | | |
329 | 314 | | |
330 | | - | |
| 315 | + | |
331 | 316 | | |
332 | 317 | | |
333 | 318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments