diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-12-05 12:59:09 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-12-05 12:59:09 -0800 |
commit | 10167eb251e177349eebf24650d3c0cc26bd0d75 (patch) | |
tree | 57f7687d96ffe8aa469f1ae345b18f0ab1798a38 /revision.h | |
parent | 3576f113cb3f36b9e2b36a84573754a922f2998b (diff) | |
parent | 9dc01bf0631b51dfe497d57942a9085e0808e205 (diff) | |
download | git-10167eb251e177349eebf24650d3c0cc26bd0d75.tar.gz |
Merge branch 'jc/ref-excludes'
People often wished a way to tell "git log --branches" (and "git
log --remotes --not --branches") to exclude some local branches
from the expansion of "--branches" (similarly for "--tags", "--all"
and "--glob=<pattern>"). Now they have one.
* jc/ref-excludes:
rev-parse: introduce --exclude=<glob> to tame wildcards
rev-list --exclude: export add/clear-ref-exclusion and ref-excluded API
rev-list --exclude: tests
document --exclude option
revision: introduce --exclude=<glob> to tame wildcards
Diffstat (limited to 'revision.h')
-rw-r--r-- | revision.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/revision.h b/revision.h index 89132df2fa..88967d6a24 100644 --- a/revision.h +++ b/revision.h @@ -61,6 +61,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; @@ -194,6 +197,11 @@ struct rev_info { struct saved_parents *saved_parents_slab; }; +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 */ |