@ -43,6 +43,8 @@
* /
* /
package org.eclipse.jgit.api ;
package org.eclipse.jgit.api ;
import static org.eclipse.jgit.treewalk.TreeWalk.OperationType.CHECKOUT_OP ;
import java.io.IOException ;
import java.io.IOException ;
import java.text.MessageFormat ;
import java.text.MessageFormat ;
import java.util.ArrayList ;
import java.util.ArrayList ;
@ -468,7 +470,8 @@ public class CheckoutCommand extends GitCommand<Ref> {
if ( path . equals ( previousPath ) )
if ( path . equals ( previousPath ) )
continue ;
continue ;
final EolStreamType eolStreamType = treeWalk . getEolStreamType ( ) ;
final EolStreamType eolStreamType = treeWalk
. getEolStreamType ( CHECKOUT_OP ) ;
final String filterCommand = treeWalk
final String filterCommand = treeWalk
. getFilterCommand ( Constants . ATTR_FILTER_TYPE_SMUDGE ) ;
. getFilterCommand ( Constants . ATTR_FILTER_TYPE_SMUDGE ) ;
editor . add ( new PathEdit ( path ) {
editor . add ( new PathEdit ( path ) {
@ -508,7 +511,8 @@ public class CheckoutCommand extends GitCommand<Ref> {
while ( treeWalk . next ( ) ) {
while ( treeWalk . next ( ) ) {
final ObjectId blobId = treeWalk . getObjectId ( 0 ) ;
final ObjectId blobId = treeWalk . getObjectId ( 0 ) ;
final FileMode mode = treeWalk . getFileMode ( 0 ) ;
final FileMode mode = treeWalk . getFileMode ( 0 ) ;
final EolStreamType eolStreamType = treeWalk . getEolStreamType ( ) ;
final EolStreamType eolStreamType = treeWalk
. getEolStreamType ( CHECKOUT_OP ) ;
final String filterCommand = treeWalk
final String filterCommand = treeWalk
. getFilterCommand ( Constants . ATTR_FILTER_TYPE_SMUDGE ) ;
. getFilterCommand ( Constants . ATTR_FILTER_TYPE_SMUDGE ) ;
final String path = treeWalk . getPathString ( ) ;
final String path = treeWalk . getPathString ( ) ;