summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.lfs/src
diff options
context:
space:
mode:
authorDavid Turner <dturner@twosigma.com>2019-07-25 15:44:34 -0400
committerDavid Turner <dturner@twosigma.com>2019-08-02 12:16:31 -0400
commit59640fb4f0615887dc8683e6eed54ac4ecabe35c (patch)
tree8197f7e1483034a93c7dad6a88faace2d2e13ae8 /org.eclipse.jgit.lfs/src
parente9dd131d55041c596398400e2c1cef75424799cd (diff)
downloadjgit-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.lfs/src')
-rw-r--r--org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/Lfs.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/Lfs.java b/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/Lfs.java
index 4c46bbd23a..8dba09cb5b 100644
--- a/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/Lfs.java
+++ b/org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/Lfs.java
@@ -42,6 +42,8 @@
*/
package org.eclipse.jgit.lfs;
+import static org.eclipse.jgit.lib.Constants.OBJECTS;
+
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
@@ -104,7 +106,7 @@ public class Lfs {
*/
public Path getLfsObjDir() {
if (objDir == null) {
- objDir = root.resolve("objects"); //$NON-NLS-1$
+ objDir = root.resolve(OBJECTS);
}
return objDir;
}