Skip to content

Commit

Permalink
Added PureGitTreeEntry>>#modeDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvc committed Sep 3, 2024
1 parent b2f2a31 commit 8a8669c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Iceberg-Git-CLI/PureGitTreeEntry.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ PureGitTreeEntry >> mode: anObject [
mode := anObject
]

{ #category : #accessing }
PureGitTreeEntry >> modeDescription [
| map |
map := {
0 -> #new.
16384 -> #tree.
33188 -> #blob.
33261 -> #executable.
40960 -> #link.
57344 -> #commit } asDictionary.
^ map at: self mode ifAbsent: [ #unknown ]
]

{ #category : #accessing }
PureGitTreeEntry >> name [
^ name
Expand Down

0 comments on commit 8a8669c

Please sign in to comment.