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
efb432c9
Commit
efb432c9
authored
Jun 01, 2016
by
Edward Thomson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3801 from ethomson/warning
cleanup: unused warning
parents
37dba1a7
14cf05da
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
9 deletions
+11
-9
src/commit.c
+3
-4
src/filebuf.c
+1
-1
src/global.c
+3
-0
src/rebase.c
+1
-4
tests/checkout/typechange.c
+3
-0
No files found.
src/commit.c
View file @
efb432c9
...
...
@@ -40,7 +40,6 @@ void git_commit__free(void *_commit)
static
int
git_commit__create_buffer_internal
(
git_buf
*
out
,
git_repository
*
repo
,
const
git_signature
*
author
,
const
git_signature
*
committer
,
const
char
*
message_encoding
,
...
...
@@ -51,7 +50,7 @@ static int git_commit__create_buffer_internal(
size_t
i
=
0
;
const
git_oid
*
parent
;
assert
(
out
&&
repo
&&
tree
);
assert
(
out
&&
tree
);
git_oid__writebuf
(
out
,
"tree "
,
tree
);
...
...
@@ -150,7 +149,7 @@ static int git_commit__create_internal(
if
((
error
=
validate_tree_and_parents
(
&
parents
,
repo
,
tree
,
parent_cb
,
parent_payload
,
current_id
,
validate
))
<
0
)
goto
cleanup
;
error
=
git_commit__create_buffer_internal
(
&
buf
,
repo
,
author
,
committer
,
error
=
git_commit__create_buffer_internal
(
&
buf
,
author
,
committer
,
message_encoding
,
message
,
tree
,
&
parents
);
...
...
@@ -813,7 +812,7 @@ int git_commit_create_buffer(git_buf *out,
return
error
;
error
=
git_commit__create_buffer_internal
(
out
,
repo
,
author
,
committer
,
out
,
author
,
committer
,
message_encoding
,
message
,
tree_id
,
&
parents_arr
);
...
...
src/filebuf.c
View file @
efb432c9
...
...
@@ -70,7 +70,7 @@ static int lock_file(git_filebuf *file, int flags, mode_t mode)
git_file
source
;
char
buffer
[
FILEIO_BUFSIZE
];
ssize_t
read_bytes
;
int
error
;
int
error
=
0
;
source
=
p_open
(
file
->
path_original
,
O_RDONLY
);
if
(
source
<
0
)
{
...
...
src/global.c
View file @
efb432c9
...
...
@@ -228,6 +228,9 @@ void git__free_tls_data(void)
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDll
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
GIT_UNUSED
(
hInstDll
);
GIT_UNUSED
(
lpvReserved
);
/* This is how Windows lets us know our thread is being shut down */
if
(
fdwReason
==
DLL_THREAD_DETACH
)
{
git__free_tls_data
();
...
...
src/rebase.c
View file @
efb432c9
...
...
@@ -1047,15 +1047,12 @@ static int rebase_commit_inmemory(
const
char
*
message_encoding
,
const
char
*
message
)
{
git_rebase_operation
*
operation
;
git_commit
*
commit
=
NULL
;
int
error
=
0
;
operation
=
git_array_get
(
rebase
->
operations
,
rebase
->
current
);
assert
(
operation
);
assert
(
rebase
->
index
);
assert
(
rebase
->
last_commit
);
assert
(
rebase
->
current
<
rebase
->
operations
.
size
);
if
((
error
=
rebase_commit__create
(
&
commit
,
rebase
,
rebase
->
index
,
rebase
->
last_commit
,
author
,
committer
,
message_encoding
,
message
))
<
0
)
...
...
tests/checkout/typechange.c
View file @
efb432c9
...
...
@@ -229,6 +229,9 @@ static int make_submodule_dirty(git_submodule *sm, const char *name, void *paylo
git_buf
dirtypath
=
GIT_BUF_INIT
;
git_repository
*
submodule_repo
;
GIT_UNUSED
(
name
);
GIT_UNUSED
(
payload
);
/* remove submodule directory in preparation for init and repo_init */
cl_git_pass
(
git_buf_joinpath
(
&
submodulepath
,
...
...
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