Skip to content

Commit 130f9f9

Browse files
authored
Merge pull request pharo-vcs#92 from Rinzwind/treeentry-testing
Reimplement #isBlob and #isLeaf on LGitTreeEntry as a comparison of the entry’s #type instead of as a delegation to its #object
2 parents 41f9aea + 2c484fc commit 130f9f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
testing
22
isBlob
3-
^ self object isBlob
3+
^ self type = LGitObjectTypeEnum git_obj_blob
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
testing
22
isLeaf
33

4-
^ self object isTree
4+
^ self type = LGitObjectTypeEnum git_obj_tree

0 commit comments

Comments
 (0)