Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hgit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eduardo Trujillo
hgit
Commits
44cee79b
Commit
44cee79b
authored
8 years ago
by
Vincent Hanquez
Browse files
Options
Downloads
Patches
Plain Diff
updates
parent
73efd477
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Data/Git/Parser.hs
+2
-2
2 additions, 2 deletions
Data/Git/Parser.hs
Data/Git/Storage/Object.hs
+3
-3
3 additions, 3 deletions
Data/Git/Storage/Object.hs
with
5 additions
and
5 deletions
Data/Git/Parser.hs
+
2
−
2
View file @
44cee79b
...
...
@@ -15,7 +15,7 @@ module Data.Git.Parser
,
tillEOL
,
skipEOL
,
skipASCII
,
take
Wh
il
e
ASCII
,
take
Unt
ilASCII
-- * Simple re-export
,
A
.
anyWord8
,
takeBytes
...
...
@@ -59,7 +59,7 @@ eitherParseChunks f = AL.eitherResult . AL.parse f
takeBytes
=
A
.
take
take
Wh
il
e
ASCII
pred
=
undefined
take
Unt
ilASCII
char
=
AL
.
takeWhile
(
\
c
->
if
fromEnum
c
<
0x80
then
fromEnum
c
==
fromEnum
char
else
True
)
tillEOL
=
A
.
takeWhile
(
/=
asciiEOL
)
skipEOL
=
A
.
word8
asciiEOL
>>
return
()
...
...
This diff is collapsed.
Click to expand it.
Data/Git/Storage/Object.hs
+
3
−
3
View file @
44cee79b
...
...
@@ -207,7 +207,7 @@ tagParse = do
P
.
skipEOL
type_
<-
objectTypeUnmarshall
<$>
(
P
.
string
"type "
>>
takeTill
((
==
)
0x0a
))
P
.
skipEOL
tag
<-
P
.
string
"tag "
>>
P
.
takeTill
((
==
)
0x0a
)
tag
<-
P
.
string
"tag "
>>
P
.
tillEOL
-- PC.
takeTill ((==) 0x0a)
P
.
skipEOL
tagger
<-
P
.
string
"tagger "
>>
parsePerson
P
.
skipEOL
...
...
@@ -215,9 +215,9 @@ tagParse = do
return
$
Tag
object
type_
tag
tagger
signature
parsePerson
=
do
name
<-
B
.
init
<$>
P
.
take
Wh
il
e
ASCII
((
/=
)
'<'
)
name
<-
B
.
init
<$>
P
.
take
Unt
ilASCII
'<'
P
.
skipASCII
'<'
email
<-
P
.
take
Wh
il
e
ASCII
((
/=
)
'>'
)
email
<-
P
.
take
Unt
ilASCII
'>'
_
<-
P
.
string
"> "
time
<-
PC
.
decimal
::
Parser
Integer
_
<-
P
.
string
" "
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment