]> git.ipfire.org Git - thirdparty/git.git/blobdiff - revision.h
rev-list --exclude: export add/clear-ref-exclusion and ref-excluded API
[thirdparty/git.git] / revision.h
index 95859ba119033ba17346c701493df1474eec5df2..c67c46d716dc99a6236b43f15cf8ea2e64772b7b 100644 (file)
@@ -59,6 +59,9 @@ struct rev_info {
        /* The end-points specified by the end user */
        struct rev_cmdline_info cmdline;
 
+       /* excluding from --branches, --refs, etc. expansion */
+       struct string_list *ref_excludes;
+
        /* Basic information */
        const char *prefix;
        const char *def;
@@ -189,6 +192,11 @@ struct rev_info {
        struct decoration line_log_data;
 };
 
+extern int ref_excluded(struct string_list *, const char *path);
+void clear_ref_exclusion(struct string_list **);
+void add_ref_exclusion(struct string_list **, const char *exclude);
+
+
 #define REV_TREE_SAME          0
 #define REV_TREE_NEW           1       /* Only new files */
 #define REV_TREE_OLD           2       /* Only files removed */