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
eb939c57
Commit
eb939c57
authored
Sep 03, 2014
by
Vicent Marti
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2552 from KindDragon/master
Several CppCat warnings fixed
parents
6f3082d9
5cd81bb3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
6 deletions
+3
-6
src/blame.c
+0
-1
src/pack.c
+0
-3
src/stash.c
+2
-1
src/transports/smart_protocol.c
+1
-1
No files found.
src/blame.c
View file @
eb939c57
...
@@ -316,7 +316,6 @@ static int blame_internal(git_blame *blame)
...
@@ -316,7 +316,6 @@ static int blame_internal(git_blame *blame)
ent
->
suspect
=
o
;
ent
->
suspect
=
o
;
blame
->
ent
=
ent
;
blame
->
ent
=
ent
;
blame
->
path
=
blame
->
path
;
git_blame__like_git
(
blame
,
blame
->
options
.
flags
);
git_blame__like_git
(
blame
,
blame
->
options
.
flags
);
...
...
src/pack.c
View file @
eb939c57
...
@@ -648,9 +648,6 @@ int git_packfile_unpack(
...
@@ -648,9 +648,6 @@ int git_packfile_unpack(
base_type
=
elem
->
type
;
base_type
=
elem
->
type
;
}
}
if
(
error
<
0
)
goto
cleanup
;
switch
(
base_type
)
{
switch
(
base_type
)
{
case
GIT_OBJ_COMMIT
:
case
GIT_OBJ_COMMIT
:
case
GIT_OBJ_TREE
:
case
GIT_OBJ_TREE
:
...
...
src/stash.c
View file @
eb939c57
...
@@ -634,7 +634,8 @@ int git_stash_drop(
...
@@ -634,7 +634,8 @@ int git_stash_drop(
entry
=
git_reflog_entry_byindex
(
reflog
,
0
);
entry
=
git_reflog_entry_byindex
(
reflog
,
0
);
git_reference_free
(
stash
);
git_reference_free
(
stash
);
if
((
error
=
git_reference_create
(
&
stash
,
repo
,
GIT_REFS_STASH_FILE
,
&
entry
->
oid_cur
,
1
,
NULL
,
NULL
)
<
0
))
error
=
git_reference_create
(
&
stash
,
repo
,
GIT_REFS_STASH_FILE
,
&
entry
->
oid_cur
,
1
,
NULL
,
NULL
);
if
(
error
<
0
)
goto
cleanup
;
goto
cleanup
;
/* We need to undo the writing that we just did */
/* We need to undo the writing that we just did */
...
...
src/transports/smart_protocol.c
View file @
eb939c57
...
@@ -314,7 +314,7 @@ static int wait_while_ack(gitno_buffer *buf)
...
@@ -314,7 +314,7 @@ static int wait_while_ack(gitno_buffer *buf)
break
;
break
;
if
(
pkt
->
type
==
GIT_PKT_ACK
&&
if
(
pkt
->
type
==
GIT_PKT_ACK
&&
(
pkt
->
status
!=
GIT_ACK_CONTINUE
||
(
pkt
->
status
!=
GIT_ACK_CONTINUE
&&
pkt
->
status
!=
GIT_ACK_COMMON
))
{
pkt
->
status
!=
GIT_ACK_COMMON
))
{
git__free
(
pkt
);
git__free
(
pkt
);
return
0
;
return
0
;
...
...
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