Repository navigation
Conversation
Accept optional third argument that is one or more git-tag filter expressions, with more than one surrounded in quote marks and each filter expression space-separated. E.g: update.py 16 v3.? update.py 16 "v3.? v3.?? v3.?-rc?" This is especially useful where the repository being indexed has multiple remotes and not all tags should be indexed. This is a generic facility for any target repository but serves as the basis for a follow-on commit for Linux project.
When the target repository has many remotes other than mainline, stable, and possibly history (i.e. sub-system -next, distro, board support, etc.) there will be many tags that should not be indexed. Add the special "kernel.org" git-tag filter that will only list mainline, stable, and history tags. In my case without this filter over 39000 tags were being indexed and required more than 40GiB storage for the indexes for a repository that is only 7.2GiB; with this filter it indexes ~5900 tags.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These two commits add an optional generic git-tag filter argument to
update.pyand a kernel.org specific filter toprojects/linux.shI added this specifically to aid indexing local Linux kernel repository that has many remotes and tags that should not be indexed. The generic ability to add git-tag filters can be applied to any project.
Example generic usage:
For Linux specifically:
When the target repository has many remotes other than mainline, stable, and possibly history (i.e. sub-system -next, distro, board support, etc.) there will be many tags that should not be indexed.
Add the special "kernel.org" git-tag filter that will only list mainline, stable, and history tags.
Example Linux usage:
In my case without this filter over 39000 tags were being indexed and required more than 40GiB storage for the indexes for a repository that is only 7.2GiB; with this filter it indexes ~5900 tags.