File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -120,6 +120,18 @@ IceDiff >> codeSubdirectoryNode [
120120
121121]
122122
123+ { #category : ' accessing' }
124+ IceDiff >> codeSubdirectoryNodeOrNil [
125+
126+ ^ self repository subdirectory
127+ ifNotEmpty: [
128+ tree
129+ firstNodeSuchThat: [ :definition | self isCodeSubdirectory: definition ]
130+ ifNone: [ nil ] ]
131+ ifEmpty: [ tree ]
132+
133+ ]
134+
123135{ #category : ' copying' }
124136IceDiff >> copyWithOnly: aCollection [
125137
@@ -167,8 +179,12 @@ IceDiff >> imageChangesForPackages: aCollection [
167179
168180{ #category : ' testing' }
169181IceDiff >> includesPackageNamed: aString [
170- ^ self isEmpty not
171- and : [ self codeSubdirectoryNode includesKey: aString ]
182+
183+ self isEmpty ifTrue: [ ^ false ].
184+
185+ ^ self codeSubdirectoryNodeOrNil
186+ ifNotNil: [ :aSubdirNode | aSubdirNode includesKey: aString ]
187+ ifNil: [ false ]
172188]
173189
174190{ #category : ' testing' }
You can’t perform that action at this time.
0 commit comments