Commit f28d40d
builtin rebase: support --onto
The `--onto` option is important, as it allows to rebase a range of
commits onto a different base commit (which gave the command its odd
name: "rebase").
This commit introduces options parsing so that different options can
be added in future commits.
Note: As this commit introduces to the parse_options() call (which
"eats" argv[0]), the argc is now expected to be lower by one after this
patch, compared to before this patch: argv[0] no longer refers to the
command name, but to the first (non-option) command-line parameter.
Signed-off-by: Pratik Karki <predatoramigo@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent ac7f467 commit f28d40d
1 file changed
+30
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
19 | 29 | | |
20 | 30 | | |
21 | 31 | | |
| |||
301 | 311 | | |
302 | 312 | | |
303 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
304 | 320 | | |
305 | 321 | | |
306 | 322 | | |
| |||
318 | 334 | | |
319 | 335 | | |
320 | 336 | | |
321 | | - | |
322 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
323 | 341 | | |
324 | 342 | | |
325 | 343 | | |
326 | 344 | | |
327 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
328 | 353 | | |
329 | 354 | | |
330 | 355 | | |
| |||
343 | 368 | | |
344 | 369 | | |
345 | 370 | | |
346 | | - | |
| 371 | + | |
347 | 372 | | |
348 | 373 | | |
349 | | - | |
| 374 | + | |
350 | 375 | | |
351 | 376 | | |
352 | 377 | | |
| |||
377 | 402 | | |
378 | 403 | | |
379 | 404 | | |
380 | | - | |
| 405 | + | |
381 | 406 | | |
382 | 407 | | |
383 | 408 | | |
| |||
0 commit comments