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
e9d5e5f3
Commit
e9d5e5f3
authored
Jan 28, 2014
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some fixes for Windows x64 warnings
parent
3cf11eef
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
include/git2/blame.h
+1
-1
src/blame.c
+1
-1
src/indexer.c
+1
-1
src/pack-objects.c
+1
-1
src/userdiff.h
+3
-3
No files found.
include/git2/blame.h
View file @
e9d5e5f3
...
...
@@ -183,7 +183,7 @@ GIT_EXTERN(int) git_blame_buffer(
git_blame
**
out
,
git_blame
*
reference
,
const
char
*
buffer
,
uint32
_t
buffer_len
);
size
_t
buffer_len
);
/**
* Free memory allocated by git_blame_file or git_blame_buffer.
...
...
src/blame.c
View file @
e9d5e5f3
...
...
@@ -450,7 +450,7 @@ int git_blame_buffer(
git_blame
**
out
,
git_blame
*
reference
,
const
char
*
buffer
,
uint32
_t
buffer_len
)
size
_t
buffer_len
)
{
git_blame
*
blame
;
git_diff_options
diffopts
=
GIT_DIFF_OPTIONS_INIT
;
...
...
src/indexer.c
View file @
e9d5e5f3
...
...
@@ -659,7 +659,7 @@ static int inject_object(git_indexer *idx, git_oid *id)
hdr_len
=
git_packfile__object_header
(
hdr
,
len
,
git_odb_object_type
(
obj
));
git_filebuf_write
(
&
idx
->
pack_file
,
hdr
,
hdr_len
);
idx
->
pack
->
mwf
.
size
+=
hdr_len
;
entry
->
crc
=
crc32
(
entry
->
crc
,
hdr
,
hdr_len
);
entry
->
crc
=
crc32
(
entry
->
crc
,
hdr
,
(
uInt
)
hdr_len
);
if
((
error
=
git_zstream_deflatebuf
(
&
buf
,
data
,
len
))
<
0
)
goto
cleanup
;
...
...
src/pack-objects.c
View file @
e9d5e5f3
...
...
@@ -348,7 +348,7 @@ static int write_object(
}
if
(
written
<
0
)
{
error
=
written
;
error
=
(
int
)
written
;
goto
done
;
}
...
...
src/userdiff.h
View file @
e9d5e5f3
...
...
@@ -193,9 +193,9 @@ PATTERNS("php",
"|[-+*/<>%&^|=!]=|--|
\\
+
\\
+|<<=?|>>=?|&&|
\\
|
\\
||::|->"
),
PATTERNS
(
"javascript"
,
"^[
\t
]*(function[
\t
][a-zA-Z_][^\{]*)
\n
"
"^[
\t
]*(var[
\t
]+[a-zA-Z_][a-zA-Z0-9_]*[
\t
]*=[
\t
]*function[
\t
\
(][^
\{]*)
\n
"
"^[
\t
]*([a-zA-Z_][a-zA-Z0-9_]*[
\t
]*:[
\t
]*function[
\t
\
(][^
\{]*)"
,
"^[
\t
]*(function[
\t
][a-zA-Z_][^
\
\
{]*)
\n
"
"^[
\t
]*(var[
\t
]+[a-zA-Z_][a-zA-Z0-9_]*[
\t
]*=[
\t
]*function[
\t\
\
(][^
\
\
{]*)
\n
"
"^[
\t
]*([a-zA-Z_][a-zA-Z0-9_]*[
\t
]*:[
\t
]*function[
\t\
\
(][^
\
\
{]*)"
,
/* -- */
"[a-zA-Z_][a-zA-Z0-9_]*"
"|[-+0-9.e]+[fFlL]?|0[xX]?[0-9a-fA-F]+[lL]?"
...
...
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