MCPcopy Create free account
hub / github.com/git/git / parse_alias

Function parse_alias

builtin/fast-import.c:3623–3643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3621}
3622
3623static 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
3645static char* make_fast_import_path(const char *path)
3646{

Callers 1

cmd_fast_importFunction · 0.85

Calls 7

skip_optional_lfFunction · 0.85
read_next_commandFunction · 0.85
parse_markFunction · 0.85
find_objectFunction · 0.85
insert_markFunction · 0.85
dieFunction · 0.50

Tested by

no test coverage detected