Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

using Attoparsec for git ls-tree result#99

Closed
yuanw wants to merge 1 commit intogithub:masterfrom
yuanw:parse-git-ls-tree
Closed

using Attoparsec for git ls-tree result#99
yuanw wants to merge 1 commit intogithub:masterfrom
yuanw:parse-git-ls-tree

Conversation

@yuanw
Copy link

@yuanw yuanw commented Jun 6, 2019

GOAL

address #34

not quite sure to add tests around new functions, since they are not exported

, [oid, path] <- splitOn "\t" rest
= TreeEntry (objectMode mode) (objectType ty) (OID oid) (unpack path)
| otherwise = nullTreeEntry
pure $ either mempty id (Parser.parseOnly treeEntriesParser out)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not quite sure how to handle failure cases

@yuanw yuanw closed this Jun 6, 2019
@tclem tclem mentioned this pull request Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant