Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
commit: rename 'new' variables
author
Brandon Williams
<bmwill@google.com>
Wed, 14 Feb 2018 18:59:37 +0000
(10:59 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 22 Feb 2018 18:08:05 +0000
(10:08 -0800)
Rename C++ keyword in order to bring the codebase closer to being able
to be compiled with a C++ compiler.
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
06fffa0
)
diff --git
a/commit.c
b/commit.c
index cd9ace105dc150da877c55f9e8f5f6da9e1efb7b..874b6e51040a8b1ff5ae69926475fd6d4b0867e4 100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-861,19
+861,19
@@
struct commit_list *get_octopus_merge_bases(struct commit_list *in)
commit_list_insert(in->item, &ret);
for (i = in->next; i; i = i->next) {
commit_list_insert(in->item, &ret);
for (i = in->next; i; i = i->next) {
- struct commit_list *new = NULL, *end = NULL;
+ struct commit_list *new
_commits
= NULL, *end = NULL;
for (j = ret; j; j = j->next) {
struct commit_list *bases;
bases = get_merge_bases(i->item, j->item);
for (j = ret; j; j = j->next) {
struct commit_list *bases;
bases = get_merge_bases(i->item, j->item);
- if (!new)
- new = bases;
+ if (!new
_commits
)
+ new
_commits
= bases;
else
end->next = bases;
for (k = bases; k; k = k->next)
end = k;
}
else
end->next = bases;
for (k = bases; k; k = k->next)
end = k;
}
- ret = new;
+ ret = new
_commits
;
}
return ret;
}
}
return ret;
}
@@
-1617,11
+1617,11
@@
struct commit *get_merge_parent(const char *name)
struct commit_list **commit_list_append(struct commit *commit,
struct commit_list **next)
{
struct commit_list **commit_list_append(struct commit *commit,
struct commit_list **next)
{
- struct commit_list *new = xmalloc(sizeof(struct commit_list));
- new->item = commit;
- *next = new;
- new->next = NULL;
- return &new->next;
+ struct commit_list *new
_commit
= xmalloc(sizeof(struct commit_list));
+ new
_commit
->item = commit;
+ *next = new
_commit
;
+ new
_commit
->next = NULL;
+ return &new
_commit
->next;
}
const char *find_commit_header(const char *msg, const char *key, size_t *out_len)
}
const char *find_commit_header(const char *msg, const char *key, size_t *out_len)