diff options
author | David Turner <dturner@twosigma.com> | 2019-07-25 15:44:34 -0400 |
---|---|---|
committer | David Turner <dturner@twosigma.com> | 2019-08-02 12:16:31 -0400 |
commit | 59640fb4f0615887dc8683e6eed54ac4ecabe35c (patch) | |
tree | 8197f7e1483034a93c7dad6a88faace2d2e13ae8 /org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java | |
parent | e9dd131d55041c596398400e2c1cef75424799cd (diff) | |
download | jgit-59640fb4f0615887dc8683e6eed54ac4ecabe35c.tar.gz jgit-59640fb4f0615887dc8683e6eed54ac4ecabe35c.zip |
Constants for objects and info/{http-,}alternates
These are useful to avoid typos, and also for tab completion.
Change-Id: I0f2d267e46b36bc40297c9657c447f3fd8b9f831
Signed-off-by: David Turner <dturner@twosigma.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java index 8f4468eef2..a084c82871 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java @@ -275,9 +275,27 @@ public final class Constants { /** Logs folder name */ public static final String LOGS = "logs"; + /** + * Objects folder name + * @since 5.5 + */ + public static final String OBJECTS = "objects"; + /** Info refs folder */ public static final String INFO_REFS = "info/refs"; + /** + * Info alternates file (goes under OBJECTS) + * @since 5.5 + */ + public static final String INFO_ALTERNATES = "info/alternates"; + + /** + * HTTP alternates file (goes under OBJECTS) + * @since 5.5 + */ + public static final String INFO_HTTP_ALTERNATES = "info/http-alternates"; + /** Packed refs file */ public static final String PACKED_REFS = "packed-refs"; |