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
70edc1b0
Commit
70edc1b0
authored
Sep 26, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clone: align type casing with convention
parent
4ba23be1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/clone.c
+8
-8
No files found.
src/clone.c
View file @
70edc1b0
...
@@ -22,12 +22,6 @@
...
@@ -22,12 +22,6 @@
#include "refs.h"
#include "refs.h"
#include "path.h"
#include "path.h"
struct
HeadInfo
{
git_repository
*
repo
;
git_oid
remote_head_oid
;
git_buf
branchname
;
};
static
int
create_tracking_branch
(
static
int
create_tracking_branch
(
git_reference
**
branch
,
git_reference
**
branch
,
git_repository
*
repo
,
git_repository
*
repo
,
...
@@ -75,9 +69,15 @@ static int create_tracking_branch(
...
@@ -75,9 +69,15 @@ static int create_tracking_branch(
return
retcode
;
return
retcode
;
}
}
struct
head_info
{
git_repository
*
repo
;
git_oid
remote_head_oid
;
git_buf
branchname
;
};
static
int
reference_matches_remote_head
(
const
char
*
head_name
,
void
*
payload
)
static
int
reference_matches_remote_head
(
const
char
*
head_name
,
void
*
payload
)
{
{
struct
HeadInfo
*
head_info
=
(
struct
HeadI
nfo
*
)
payload
;
struct
head_info
*
head_info
=
(
struct
head_i
nfo
*
)
payload
;
git_oid
oid
;
git_oid
oid
;
/* Stop looking if we've already found a match */
/* Stop looking if we've already found a match */
...
@@ -111,7 +111,7 @@ static int update_head_to_remote(git_repository *repo, git_remote *remote)
...
@@ -111,7 +111,7 @@ static int update_head_to_remote(git_repository *repo, git_remote *remote)
int
retcode
=
GIT_ERROR
;
int
retcode
=
GIT_ERROR
;
git_remote_head
*
remote_head
;
git_remote_head
*
remote_head
;
git_oid
oid
;
git_oid
oid
;
struct
HeadI
nfo
head_info
;
struct
head_i
nfo
head_info
;
/* Get the remote's HEAD. This is always the first ref in remote->refs. */
/* Get the remote's HEAD. This is always the first ref in remote->refs. */
remote_head
=
remote
->
refs
.
contents
[
0
];
remote_head
=
remote
->
refs
.
contents
[
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