X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=revision.h;h=93d31556cb44d3e4c5162d21c8e92d572a36508e;hb=cec3e186f7b76cdced54286ef1da42b6978c4c8d;hp=3d64adad18e2c889b7a7b7367f99c239f958dc70;hpb=f4af7f19639457d71c4e9b53892b937468824cac;p=thirdparty%2Fgit.git diff --git a/revision.h b/revision.h index 3d64adad18..93d31556cb 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;