aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java
diff options
context:
space:
mode:
authorChristian Halstrick <christian.halstrick@sap.com>2015-10-29 14:15:08 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2015-11-27 23:33:53 +0100
commitbd31555ee507cd29a11060756297031354b9b0c3 (patch)
tree86a470d86a114f236e615b8d34b6f52be38ecc13 /org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java
parent5d9f595eb87fba31c2253051102116fc7876e6c0 (diff)
downloadjgit-bd31555ee507cd29a11060756297031354b9b0c3.tar.gz
jgit-bd31555ee507cd29a11060756297031354b9b0c3.zip
Add support for smudge filters
If defined in .gitattributes call smudge filter during checkout. To support checkout where current HEAD,index do not contain attributes we need to also consider attributes from the tree we checkout. Therefore CanonicalTreeParser has to learn how to provide attributes. Change-Id: I168fdb81a8e1a9f991587b3e95a36550ea845f0a Signed-off-by: Matthias Sohn <matthias.sohn@sap.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.java7
1 files changed, 7 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 1a3111ab49..d30edaf41b 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java
@@ -384,6 +384,13 @@ public final class Constants {
*/
public static final String ATTR_FILTER_TYPE_CLEAN = "clean";
+ /**
+ * smudge command name, used to call filter driver
+ *
+ * @since 4.2
+ */
+ public static final String ATTR_FILTER_TYPE_SMUDGE = "smudge";
+
/** Name of the ignore file */
public static final String DOT_GIT_IGNORE = ".gitignore";