Skip to content

Commit 5bd49ae

Browse files
authored
Merge pull request libgit2#6045 from punkymaniac/qa-fix-coding-style-pointer
Fix coding style for pointer
2 parents 1f6263b + 379c464 commit 5bd49ae

34 files changed

+76
-76
lines changed

include/git2/clone.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ typedef struct git_clone_options {
133133
* The name of the branch to checkout. NULL means use the
134134
* remote's default branch.
135135
*/
136-
const char* checkout_branch;
136+
const char *checkout_branch;
137137

138138
/**
139139
* A callback used to create the new repository into which to

include/git2/notes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ GIT_EXTERN(void) git_note_iterator_free(git_note_iterator *it);
8484
* (negative value)
8585
*/
8686
GIT_EXTERN(int) git_note_next(
87-
git_oid* note_id,
88-
git_oid* annotated_id,
87+
git_oid *note_id,
88+
git_oid *annotated_id,
8989
git_note_iterator *it);
9090

9191

include/git2/remote.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ GIT_EXTERN(const char *) git_remote_pushurl(const git_remote *remote);
243243
* @param url the url to set
244244
* @return 0 or an error value
245245
*/
246-
GIT_EXTERN(int) git_remote_set_url(git_repository *repo, const char *remote, const char* url);
246+
GIT_EXTERN(int) git_remote_set_url(git_repository *repo, const char *remote, const char *url);
247247

248248
/**
249249
* Set the remote's url for pushing in the configuration.
@@ -257,7 +257,7 @@ GIT_EXTERN(int) git_remote_set_url(git_repository *repo, const char *remote, con
257257
* @param url the url to set
258258
* @return 0, or an error code
259259
*/
260-
GIT_EXTERN(int) git_remote_set_pushurl(git_repository *repo, const char *remote, const char* url);
260+
GIT_EXTERN(int) git_remote_set_pushurl(git_repository *repo, const char *remote, const char *url);
261261

262262
/**
263263
* Set the url for this particular url instance. The URL in the
@@ -451,7 +451,7 @@ typedef int GIT_CALLBACK(git_push_transfer_progress_cb)(
451451
unsigned int current,
452452
unsigned int total,
453453
size_t bytes,
454-
void* payload);
454+
void *payload);
455455

456456
/**
457457
* Represents an update which will be performed on the remote during push

include/git2/repository.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,8 @@ GIT_EXTERN(int) git_repository_hashfile(
797797
* @return 0 on success, or an error code
798798
*/
799799
GIT_EXTERN(int) git_repository_set_head(
800-
git_repository* repo,
801-
const char* refname);
800+
git_repository *repo,
801+
const char *refname);
802802

803803
/**
804804
* Make the repository HEAD directly point to the Commit.
@@ -817,8 +817,8 @@ GIT_EXTERN(int) git_repository_set_head(
817817
* @return 0 on success, or an error code
818818
*/
819819
GIT_EXTERN(int) git_repository_set_head_detached(
820-
git_repository* repo,
821-
const git_oid* commitish);
820+
git_repository *repo,
821+
const git_oid *commitish);
822822

823823
/**
824824
* Make the repository HEAD directly point to the Commit.
@@ -854,7 +854,7 @@ GIT_EXTERN(int) git_repository_set_head_detached_from_annotated(
854854
* branch or an error code
855855
*/
856856
GIT_EXTERN(int) git_repository_detach_head(
857-
git_repository* repo);
857+
git_repository *repo);
858858

859859
/**
860860
* Repository state

include/git2/stash.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ GIT_EXTERN(int) git_stash_apply(
200200
*/
201201
typedef int GIT_CALLBACK(git_stash_cb)(
202202
size_t index,
203-
const char* message,
203+
const char *message,
204204
const git_oid *stash_id,
205205
void *payload);
206206

src/blame.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static bool hunk_starts_at_or_after_line(git_blame_hunk *hunk, size_t line)
5959
return line <= hunk->final_start_line_number;
6060
}
6161

62-
static git_blame_hunk* new_hunk(
62+
static git_blame_hunk *new_hunk(
6363
size_t start,
6464
size_t lines,
6565
size_t orig_start,
@@ -84,7 +84,7 @@ static void free_hunk(git_blame_hunk *hunk)
8484
git__free(hunk);
8585
}
8686

87-
static git_blame_hunk* dup_hunk(git_blame_hunk *hunk)
87+
static git_blame_hunk *dup_hunk(git_blame_hunk *hunk)
8888
{
8989
git_blame_hunk *newhunk = new_hunk(
9090
hunk->final_start_line_number,
@@ -122,7 +122,7 @@ static void shift_hunks_by(git_vector *v, size_t start_line, int shift_by)
122122
}
123123
}
124124

125-
git_blame* git_blame__alloc(
125+
git_blame *git_blame__alloc(
126126
git_repository *repo,
127127
git_blame_options opts,
128128
const char *path)
@@ -299,7 +299,7 @@ static int index_blob_lines(git_blame *blame)
299299
return blame->num_lines;
300300
}
301301

302-
static git_blame_hunk* hunk_from_entry(git_blame__entry *e, git_blame *blame)
302+
static git_blame_hunk *hunk_from_entry(git_blame__entry *e, git_blame *blame)
303303
{
304304
git_blame_hunk *h = new_hunk(
305305
e->lno+1, e->num_lines, e->s_lno+1, e->suspect->path);

src/blame_git.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ static int paths_on_dup(void **old, void *new)
429429
return -1;
430430
}
431431

432-
static git_blame__origin* find_origin(
432+
static git_blame__origin *find_origin(
433433
git_blame *blame,
434434
git_commit *parent,
435435
git_blame__origin *origin)

src/buffer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ int git_buf_join_n(git_buf *buf, char separator, int nbuf, ...)
670670

671671
va_start(ap, nbuf);
672672
for (i = 0; i < nbuf; ++i) {
673-
const char* segment;
673+
const char *segment;
674674
size_t segment_len;
675675

676676
segment = va_arg(ap, const char *);
@@ -702,7 +702,7 @@ int git_buf_join_n(git_buf *buf, char separator, int nbuf, ...)
702702

703703
va_start(ap, nbuf);
704704
for (i = 0; i < nbuf; ++i) {
705-
const char* segment;
705+
const char *segment;
706706
size_t segment_len;
707707

708708
segment = va_arg(ap, const char *);

src/clone.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ static int update_head_to_branch(
265265
{
266266
int retcode;
267267
git_buf remote_branch_name = GIT_BUF_INIT;
268-
git_reference* remote_ref = NULL;
268+
git_reference *remote_ref = NULL;
269269
git_buf default_branch = GIT_BUF_INIT;
270270

271271
GIT_ASSERT_ARG(remote);

src/commit_graph.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ int git_commit_graph_writer_add_revwalk(git_commit_graph_writer *w, git_revwalk
728728
git_oid id;
729729
git_repository *repo = git_revwalk_repository(walk);
730730
git_commit *commit;
731-
struct packed_commit* packed_commit;
731+
struct packed_commit *packed_commit;
732732

733733
while ((git_revwalk_next(&id, walk)) == 0) {
734734
error = git_commit_lookup(&commit, repo, &id);

0 commit comments

Comments
 (0)