aboutsummaryrefslogtreecommitdiff
path: root/epoch.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-06 09:31:17 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-06 09:31:17 -0700
commitf755494cec27fed8c9693bb91c26762061518b0b (patch)
tree9802a641645e28694535343c2e3e1fbe9733e5cf /epoch.c
parentf6069c5995114d0fb2fba1140be5db717ff3b396 (diff)
downloadgit-f755494cec27fed8c9693bb91c26762061518b0b.tar.gz
git-f755494cec27fed8c9693bb91c26762061518b0b.tar.xz
Make "insert_by_date()" match "commit_list_insert()"
Same argument order, same return type. This allows us to use a function pointer to choose one over the other.
Diffstat (limited to 'epoch.c')
-rw-r--r--epoch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epoch.c b/epoch.c
index 6dbcfb34a..abfd594bb 100644
--- a/epoch.c
+++ b/epoch.c
@@ -255,11 +255,11 @@ static int find_base_for_list(struct commit_list *list, struct commit **boundary
if (!parent_node) {
parent_node = new_mass_counter(parent, &distribution);
- insert_by_date(&pending, parent);
+ insert_by_date(parent, &pending);
commit_list_insert(parent, &cleaner);
} else {
if (!compare(&parent_node->pending, get_zero()))
- insert_by_date(&pending, parent);
+ insert_by_date(parent, &pending);
add(&parent_node->pending, &parent_node->pending, &distribution);
}
}