Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions Iceberg-Libgit/IceGitChangeImporter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,10 @@ IceGitChangeImporter >> importOn: aNode [
filePath := aNode path / currentSegment.
fileReference := version fileSystem resolve: filePath.

"Do not import if the file does not exist in git"
fileReference exists
ifFalse: [ ^ self ].

"If I represent a package, let's do it and do nothing else.
This could be optimized to add the exact methods and avoid MC diff afterwards"
((diff isCodeSubdirectory: aNode)
and: [ version writerClass isValidPackage: fileReference ])
and: [ version includesPackageNamed: currentSegment ])
ifTrue: [ ^ self ensurePackageFromDirectory: fileReference inParentNode: aNode ].

"If I do not represent a package, I may be a file or a directory that may (recursively) contain a method or a package.
Expand Down
Loading