projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Debian: build-depend on "bc"
[git.git]
/
object.c
diff --git
a/object.c
b/object.c
index
72f6aa5
..
63e6e78
100644
(file)
--- a/
object.c
+++ b/
object.c
@@
-184,6
+184,17
@@
struct object_list *object_list_insert(struct object *item,
return new_list;
}
return new_list;
}
+void object_list_append(struct object *item,
+ struct object_list **list_p)
+{
+ while (*list_p) {
+ list_p = &((*list_p)->next);
+ }
+ *list_p = xmalloc(sizeof(struct object_list));
+ (*list_p)->next = NULL;
+ (*list_p)->item = item;
+}
+
unsigned object_list_length(struct object_list *list)
{
unsigned ret = 0;
unsigned object_list_length(struct object_list *list)
{
unsigned ret = 0;