diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2012-09-26 11:05:12 +0200 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2012-10-08 00:44:11 +0200 |
| commit | 70edc1b0fc98c22e6c0f73c7292cb858e444e5c2 (patch) | |
| tree | 2293f0d7fe62a1afe7ebe21386140f8b8e7f16fd /src/clone.c | |
| parent | 4ba23be1e5bd480d9f6bb3eb212d5a3409fa88bd (diff) | |
| download | libgit2-70edc1b0fc98c22e6c0f73c7292cb858e444e5c2.tar.gz | |
clone: align type casing with convention
Diffstat (limited to 'src/clone.c')
| -rw-r--r-- | src/clone.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/clone.c b/src/clone.c index c233977b7..dac741f33 100644 --- a/src/clone.c +++ b/src/clone.c @@ -22,12 +22,6 @@ #include "refs.h" #include "path.h" -struct HeadInfo { - git_repository *repo; - git_oid remote_head_oid; - git_buf branchname; -}; - static int create_tracking_branch( git_reference **branch, git_repository *repo, @@ -75,9 +69,15 @@ static int create_tracking_branch( 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) { - struct HeadInfo *head_info = (struct HeadInfo *)payload; + struct head_info *head_info = (struct head_info *)payload; git_oid oid; /* 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) int retcode = GIT_ERROR; git_remote_head *remote_head; git_oid oid; - struct HeadInfo head_info; + struct head_info head_info; /* Get the remote's HEAD. This is always the first ref in remote->refs. */ remote_head = remote->refs.contents[0]; |
