]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ps/rev-list-object-type-filter'
authorJunio C Hamano <gitster@pobox.com>
Fri, 7 May 2021 03:47:40 +0000 (12:47 +0900)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 May 2021 03:47:41 +0000 (12:47 +0900)
"git rev-list" learns the "--filter=object:type=<type>" option,
which can be used to exclude objects of the given kind from the
packfile generated by pack-objects.

* ps/rev-list-object-type-filter:
  rev-list: allow filtering of provided items
  pack-bitmap: implement combined filter
  pack-bitmap: implement object type filter
  list-objects: implement object type filter
  list-objects: support filtering by tag and commit
  list-objects: move tag processing into its own function
  revision: mark commit parents as NOT_USER_GIVEN
  uploadpack.txt: document implication of `uploadpackfilter.allow`

1  2 
builtin/pack-objects.c
pack-bitmap.c
pack-bitmap.h
reachable.c
revision.c

Simple merge
diff --cc pack-bitmap.c
Simple merge
diff --cc pack-bitmap.h
index 78f2b3ff792ecca6fd316cdeffffdcf174c79598,bb45217d3b660647871d4516b3253c015453dee5..99d733eb264e9f77b83da58033db5bec44b6702b
@@@ -50,9 -49,9 +50,10 @@@ void traverse_bitmap_commit_list(struc
                                 struct rev_info *revs,
                                 show_reachable_fn show_reachable);
  void test_bitmap_walk(struct rev_info *revs);
 +int test_bitmap_commits(struct repository *r);
  struct bitmap_index *prepare_bitmap_walk(struct rev_info *revs,
-                                        struct list_objects_filter_options *filter);
+                                        struct list_objects_filter_options *filter,
+                                        int filter_provided_objects);
  int reuse_partial_packfile_from_bitmap(struct bitmap_index *,
                                       struct packed_git **packfile,
                                       uint32_t *entries,
diff --cc reachable.c
Simple merge
diff --cc revision.c
Simple merge