diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2017-11-08 20:20:45 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2017-11-15 10:37:56 +0900 |
commit | 6ec5d8ddb13df9ccc085434bb5598ae89395d90c (patch) | |
tree | a1a22334db8dcd3f505f7d5c4aeb6b742f85a47a /org.eclipse.jgit/src/org/eclipse/jgit/dircache | |
parent | 2a15a63005a2116e271efc44c39741efbfe075d4 (diff) | |
download | jgit-6ec5d8ddb13df9ccc085434bb5598ae89395d90c.tar.gz jgit-6ec5d8ddb13df9ccc085434bb5598ae89395d90c.zip |
TreeWalk: Make getEolStreamType(OperationType) public
and deprecate getEolStreamType().
This resolves a TODO that was apparently supposed to be done in
version 4.4.
Change-Id: I5c9861aedabdc3f99dcf47519b3959a979e6a591
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/dircache')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java index f8c23ca64f..d30f6e45be 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java @@ -42,6 +42,8 @@ package org.eclipse.jgit.dircache; +import static org.eclipse.jgit.treewalk.TreeWalk.OperationType.CHECKOUT_OP; + import java.io.File; import java.io.FileOutputStream; import java.io.IOException; @@ -1148,7 +1150,8 @@ public class DirCacheCheckout { private void update(String path, ObjectId mId, FileMode mode) throws IOException { if (!FileMode.TREE.equals(mode)) { - updated.put(path, new CheckoutMetadata(walk.getEolStreamType(), + updated.put(path, new CheckoutMetadata( + walk.getEolStreamType(CHECKOUT_OP), walk.getFilterCommand(Constants.ATTR_FILTER_TYPE_SMUDGE))); DirCacheEntry entry = new DirCacheEntry(path, DirCacheEntry.STAGE_0); |