add ls-files --unmerged support
This commit is contained in:
parent
6f45827fe0
commit
8e8439a519
2 changed files with 32 additions and 1 deletions
|
@ -71,3 +71,9 @@ instance Show BlobType where
|
|||
show FileBlob = "100644"
|
||||
show ExecutableBlob = "100755"
|
||||
show SymlinkBlob = "120000"
|
||||
|
||||
readBlobType :: String -> Maybe BlobType
|
||||
readBlobType "100644" = Just FileBlob
|
||||
readBlobType "100755" = Just ExecutableBlob
|
||||
readBlobType "120000" = Just SymlinkBlob
|
||||
readBlobType _ = Nothing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue