diff options
author | Stefan Beller <sbeller@google.com> | 2016-07-22 11:39:50 -0700 |
---|---|---|
committer | Stefan Beller <sbeller@google.com> | 2016-07-25 10:10:06 -0700 |
commit | a2d3c376a682b540ecd87fe3ff2ffebc1766f938 (patch) | |
tree | 51745bde6340f646d027dd5a9559560bea87d7a3 /org.eclipse.jgit/resources/org | |
parent | 1556ca740b75661a2670ddcb581dafced3010bae (diff) | |
download | jgit-a2d3c376a682b540ecd87fe3ff2ffebc1766f938.tar.gz jgit-a2d3c376a682b540ecd87fe3ff2ffebc1766f938.zip |
RefSpecs: allow construction of weird wildcarded RefSpecs
Gerrit's superproject subscription feature uses RefSpecs to formalize
the ACLs of when the superproject subscription feature is allowed.
As this is a slightly different use case than describing a local/remote
pair of refs, we need to be more permissive. Specifically we want to allow:
refs/heads/*
refs/heads/*:refs/heads/master
refs/heads/master:refs/heads/*
Introduce a new constructor, that allows constructing these RefSpecs.
Change-Id: I46c0bea9d876e61eb2c8d50f404b905792bc72b3
Signed-off-by: Stefan Beller <sbeller@google.com>
Diffstat (limited to 'org.eclipse.jgit/resources/org')
-rw-r--r-- | org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties index ebe1befee1..7bf3d1e324 100644 --- a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties +++ b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties @@ -333,6 +333,7 @@ invalidChannel=Invalid channel {0} invalidCharacterInBase64Data=Invalid character in Base64 data. invalidCommitParentNumber=Invalid commit parent number invalidEncryption=Invalid encryption +invalidExpandWildcard=ExpandFromSource on a refspec that can have mismatched wildcards does not make sense. invalidGitdirRef = Invalid .git reference in file ''{0}'' invalidGitType=invalid git type: {0} invalidId=Invalid id: {0} |