Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
e226861e
Commit
e226861e
authored
Nov 23, 2012
by
Edward Thomson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1100 from martinwoodward/fuckityfuck
Remove use of English expletives
parents
5cf1b4f0
826bc4a8
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
16 deletions
+16
-16
deps/http-parser/http_parser.c
+1
-1
deps/regex/regex_internal.h
+1
-1
src/config_file.c
+1
-1
src/date.c
+10
-10
src/indexer.c
+1
-1
src/oid.c
+1
-1
src/pack.c
+1
-1
No files found.
deps/http-parser/http_parser.c
View file @
e226861e
...
@@ -1744,7 +1744,7 @@ size_t http_parser_execute (http_parser *parser,
...
@@ -1744,7 +1744,7 @@ size_t http_parser_execute (http_parser *parser,
case
s_chunk_parameters
:
case
s_chunk_parameters
:
{
{
assert
(
parser
->
flags
&
F_CHUNKED
);
assert
(
parser
->
flags
&
F_CHUNKED
);
/* just ignore this
shit
. TODO check for overflow */
/* just ignore this. TODO check for overflow */
if
(
ch
==
CR
)
{
if
(
ch
==
CR
)
{
parser
->
state
=
s_chunk_size_almost_done
;
parser
->
state
=
s_chunk_size_almost_done
;
break
;
break
;
...
...
deps/regex/regex_internal.h
View file @
e226861e
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
#endif
#endif
#else
/* GAWK */
#else
/* GAWK */
/*
/*
* This is a
freaking
mess. On glibc systems you have to define
* This is a mess. On glibc systems you have to define
* a magic constant to get isblank() out of <ctype.h>, since it's
* a magic constant to get isblank() out of <ctype.h>, since it's
* a C99 function. To heck with all that and borrow a page from
* a C99 function. To heck with all that and borrow a page from
* dfa.c's book.
* dfa.c's book.
...
...
src/config_file.c
View file @
e226861e
...
@@ -863,7 +863,7 @@ static int skip_bom(diskfile_backend *cfg)
...
@@ -863,7 +863,7 @@ static int skip_bom(diskfile_backend *cfg)
cfg
->
reader
.
read_ptr
+=
sizeof
(
utf8_bom
);
cfg
->
reader
.
read_ptr
+=
sizeof
(
utf8_bom
);
/* TODO: the reference implementation does pretty stupid
/* TODO: the reference implementation does pretty stupid
s
hit
with the BoM
s
tuff
with the BoM
*/
*/
return
0
;
return
0
;
...
...
src/date.c
View file @
e226861e
...
@@ -106,15 +106,15 @@ static const struct {
...
@@ -106,15 +106,15 @@ static const struct {
{
"MESZ"
,
+
1
,
1
,
},
/* Middle European Summer */
{
"MESZ"
,
+
1
,
1
,
},
/* Middle European Summer */
{
"FWT"
,
+
1
,
0
,
},
/* French Winter */
{
"FWT"
,
+
1
,
0
,
},
/* French Winter */
{
"FST"
,
+
1
,
1
,
},
/* French Summer */
{
"FST"
,
+
1
,
1
,
},
/* French Summer */
{
"EET"
,
+
2
,
0
,
},
/* Eastern Europe
, USSR Zone 1
*/
{
"EET"
,
+
2
,
0
,
},
/* Eastern Europe */
{
"EEST"
,
+
2
,
1
,
},
/* Eastern European Daylight */
{
"EEST"
,
+
2
,
1
,
},
/* Eastern European Daylight */
{
"WAST"
,
+
7
,
0
,
},
/* West Australian Standard */
{
"WAST"
,
+
7
,
0
,
},
/* West Australian Standard */
{
"WADT"
,
+
7
,
1
,
},
/* West Australian Daylight */
{
"WADT"
,
+
7
,
1
,
},
/* West Australian Daylight */
{
"CCT"
,
+
8
,
0
,
},
/* China Coast
, USSR Zone 7
*/
{
"CCT"
,
+
8
,
0
,
},
/* China Coast */
{
"JST"
,
+
9
,
0
,
},
/* Japan Standard
, USSR Zone 8
*/
{
"JST"
,
+
9
,
0
,
},
/* Japan Standard */
{
"EAST"
,
+
10
,
0
,
},
/* Eastern Australian Standard */
{
"EAST"
,
+
10
,
0
,
},
/* Eastern Australian Standard */
{
"EADT"
,
+
10
,
1
,
},
/* Eastern Australian Daylight */
{
"EADT"
,
+
10
,
1
,
},
/* Eastern Australian Daylight */
{
"GST"
,
+
10
,
0
,
},
/* Guam Standard
, USSR Zone 9
*/
{
"GST"
,
+
10
,
0
,
},
/* Guam Standard */
{
"NZT"
,
+
12
,
0
,
},
/* New Zealand */
{
"NZT"
,
+
12
,
0
,
},
/* New Zealand */
{
"NZST"
,
+
12
,
0
,
},
/* New Zealand Standard */
{
"NZST"
,
+
12
,
0
,
},
/* New Zealand Standard */
{
"NZDT"
,
+
12
,
1
,
},
/* New Zealand Daylight */
{
"NZDT"
,
+
12
,
1
,
},
/* New Zealand Daylight */
...
@@ -195,7 +195,7 @@ static size_t match_alpha(const char *date, struct tm *tm, int *offset)
...
@@ -195,7 +195,7 @@ static size_t match_alpha(const char *date, struct tm *tm, int *offset)
return
2
;
return
2
;
}
}
/* BAD
CRAP
*/
/* BAD */
return
skip_alpha
(
date
);
return
skip_alpha
(
date
);
}
}
...
@@ -425,16 +425,16 @@ static size_t match_tz(const char *date, int *offp)
...
@@ -425,16 +425,16 @@ static size_t match_tz(const char *date, int *offp)
min
=
hour
%
100
;
min
=
hour
%
100
;
hour
=
hour
/
100
;
hour
=
hour
/
100
;
}
else
if
(
n
!=
2
)
{
}
else
if
(
n
!=
2
)
{
min
=
99
;
/* random
crap
*/
min
=
99
;
/* random
stuff
*/
}
else
if
(
*
end
==
':'
)
{
}
else
if
(
*
end
==
':'
)
{
/* hh:mm? */
/* hh:mm? */
min
=
strtoul
(
end
+
1
,
&
end
,
10
);
min
=
strtoul
(
end
+
1
,
&
end
,
10
);
if
(
end
-
(
date
+
1
)
!=
5
)
if
(
end
-
(
date
+
1
)
!=
5
)
min
=
99
;
/* random
crap
*/
min
=
99
;
/* random
stuff
*/
}
/* otherwise we parsed "hh" */
}
/* otherwise we parsed "hh" */
/*
/*
* Don't accept any random
crap
. Even though some places have
* Don't accept any random
stuff
. Even though some places have
* offset larger than 12 hours (e.g. Pacific/Kiritimati is at
* offset larger than 12 hours (e.g. Pacific/Kiritimati is at
* UTC+14), there is something wrong if hour part is much
* UTC+14), there is something wrong if hour part is much
* larger than that. We might also want to check that the
* larger than that. We might also want to check that the
...
@@ -521,7 +521,7 @@ static int parse_date_basic(const char *date, git_time_t *timestamp, int *offset
...
@@ -521,7 +521,7 @@ static int parse_date_basic(const char *date, git_time_t *timestamp, int *offset
match
=
match_tz
(
date
,
offset
);
match
=
match_tz
(
date
,
offset
);
if
(
!
match
)
{
if
(
!
match
)
{
/* BAD
CRAP
*/
/* BAD */
match
=
1
;
match
=
1
;
}
}
...
@@ -817,7 +817,7 @@ static void pending_number(struct tm *tm, int *num)
...
@@ -817,7 +817,7 @@ static void pending_number(struct tm *tm, int *num)
tm
->
tm_year
=
number
;
tm
->
tm_year
=
number
;
else
if
(
number
<
38
)
else
if
(
number
<
38
)
tm
->
tm_year
=
100
+
number
;
tm
->
tm_year
=
100
+
number
;
/* We
screw
up for number = 00 ? */
/* We
mess
up for number = 00 ? */
}
}
}
}
}
}
...
...
src/indexer.c
View file @
e226861e
...
@@ -469,7 +469,7 @@ int git_indexer_stream_finalize(git_indexer_stream *idx, git_transfer_progress *
...
@@ -469,7 +469,7 @@ int git_indexer_stream_finalize(git_indexer_stream *idx, git_transfer_progress *
/* Test for this before resolve_deltas(), as it plays with idx->off */
/* Test for this before resolve_deltas(), as it plays with idx->off */
if
(
idx
->
off
<
idx
->
pack
->
mwf
.
size
-
GIT_OID_RAWSZ
)
{
if
(
idx
->
off
<
idx
->
pack
->
mwf
.
size
-
GIT_OID_RAWSZ
)
{
giterr_set
(
GITERR_INDEXER
,
"Indexing error:
junk
at the end of the pack"
);
giterr_set
(
GITERR_INDEXER
,
"Indexing error:
unexpected data
at the end of the pack"
);
return
-
1
;
return
-
1
;
}
}
...
...
src/oid.c
View file @
e226861e
...
@@ -293,7 +293,7 @@ void git_oid_shorten_free(git_oid_shorten *os)
...
@@ -293,7 +293,7 @@ void git_oid_shorten_free(git_oid_shorten *os)
* - Each normal node points to 16 children (one for each possible
* - Each normal node points to 16 children (one for each possible
* character in the oid). This is *not* stored in an array of
* character in the oid). This is *not* stored in an array of
* pointers, because in a 64-bit arch this would be sucking
* pointers, because in a 64-bit arch this would be sucking
* 16*sizeof(void*) = 128 bytes of memory per node, which is
fucking
* 16*sizeof(void*) = 128 bytes of memory per node, which is
* insane. What we do is store Node Indexes, and use these indexes
* insane. What we do is store Node Indexes, and use these indexes
* to look up each node in the om->index array. These indexes are
* to look up each node in the om->index array. These indexes are
* signed shorts, so this limits the amount of unique OIDs that
* signed shorts, so this limits the amount of unique OIDs that
...
...
src/pack.c
View file @
e226861e
...
@@ -321,7 +321,7 @@ static int packfile_unpack_delta(
...
@@ -321,7 +321,7 @@ static int packfile_unpack_delta(
git__free
(
base
.
data
);
git__free
(
base
.
data
);
git__free
(
delta
.
data
);
git__free
(
delta
.
data
);
/* TODO: we might want to cache this
shit
. eventually */
/* TODO: we might want to cache this. eventually */
//add_delta_base_cache(p, base_offset, base, base_size, *type);
//add_delta_base_cache(p, base_offset, base, base_size, *type);
return
error
;
/* error set by git__delta_apply */
return
error
;
/* error set by git__delta_apply */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment