X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=revision.h;h=93d31556cb44d3e4c5162d21c8e92d572a36508e;hb=a151c28c729f459390027300f82465a669ba2df9;hp=3d64adad18e2c889b7a7b7367f99c239f958dc70;hpb=e2d0a2e440bcf3d3f4134317ba539d79d4092918;p=git.git diff --git a/revision.h b/revision.h index 3d64adad1..93d31556c 100644 --- a/revision.h +++ b/revision.h @@ -24,6 +24,23 @@ struct rev_info; struct log_info; struct string_list; +struct rev_cmdline_info { + unsigned int nr; + unsigned int alloc; + struct rev_cmdline_entry { + struct object *item; + const char *name; + enum { + REV_CMD_REF, + REV_CMD_PARENTS_ONLY, + REV_CMD_LEFT, + REV_CMD_RIGHT, + REV_CMD_REV + } whence; + unsigned flags; + } *rev; +}; + struct rev_info { /* Starting list */ struct commit_list *commits; @@ -32,6 +49,9 @@ struct rev_info { /* Parents of shown commits */ struct object_array boundary_commits; + /* The end-points specified by the end user */ + struct rev_cmdline_info cmdline; + /* Basic information */ const char *prefix; const char *def;