| 3621 | } |
| 3622 | |
| 3623 | static void parse_alias(void) |
| 3624 | { |
| 3625 | struct object_entry *e; |
| 3626 | struct branch b; |
| 3627 | |
| 3628 | skip_optional_lf(); |
| 3629 | read_next_command(); |
| 3630 | |
| 3631 | /* mark ... */ |
| 3632 | parse_mark(); |
| 3633 | if (!next_mark) |
| 3634 | die(_("expected 'mark' command, got %s"), command_buf.buf); |
| 3635 | |
| 3636 | /* to ... */ |
| 3637 | memset(&b, 0, sizeof(b)); |
| 3638 | if (!parse_objectish_with_prefix(&b, "to ")) |
| 3639 | die(_("expected 'to' command, got %s"), command_buf.buf); |
| 3640 | e = find_object(&b.oid); |
| 3641 | assert(e); |
| 3642 | insert_mark(&marks, next_mark, e); |
| 3643 | } |
| 3644 | |
| 3645 | static char* make_fast_import_path(const char *path) |
| 3646 | { |
no test coverage detected