aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigLine.java
diff options
context:
space:
mode:
authorMarc Strapetz <marc.strapetz@syntevo.com>2018-08-25 11:33:17 +0200
committerMarc Strapetz <marc.strapetz@syntevo.com>2018-09-20 17:05:39 +0200
commit31abb329b42f3bab4d683bd1c709ab55f0d29ef6 (patch)
treee498bbe6cc7ed7402525638a71456db1cc3ba2cb /org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigLine.java
parent4741b072bd07e49dd77c7d777fda3eb8617eefc4 (diff)
downloadjgit-31abb329b42f3bab4d683bd1c709ab55f0d29ef6.tar.gz
jgit-31abb329b42f3bab4d683bd1c709ab55f0d29ef6.zip
ConfigLine.includedFrom stores source, if it was read from included file
This is a base change which prepares for subsequent bugfixes. Change-Id: Iaadc93df37e45753d700be73669e68c03590adb5 Signed-off-by: Marc Strapetz <marc.strapetz@syntevo.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigLine.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigLine.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigLine.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigLine.java
index 937ba925c5..e623a8cebc 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigLine.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ConfigLine.java
@@ -73,6 +73,9 @@ class ConfigLine {
/** The text content after entry. */
String suffix;
+ /** The source from which this line was included from. */
+ String includedFrom;
+
ConfigLine forValue(String newValue) {
final ConfigLine e = new ConfigLine();
e.prefix = prefix;
@@ -81,6 +84,7 @@ class ConfigLine {
e.name = name;
e.value = newValue;
e.suffix = suffix;
+ e.includedFrom = includedFrom;
return e;
}