summaryrefslogtreecommitdiff
path: root/builtin/fetch-pack.c
diff options
context:
space:
mode:
authorThiago Farina <tfransosi@gmail.com>2010-11-27 01:58:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-11-29 22:01:52 (GMT)
commit47e44ed1dc17d3a94ec4bf8dd29810ab7882041c (patch)
tree97d8360010d379d0fd160dbe3791061ccfd3b45b /builtin/fetch-pack.c
parent7d43de925b2771d295d8fc4341b7bd544e2a74fa (diff)
downloadgit-47e44ed1dc17d3a94ec4bf8dd29810ab7882041c.zip
git-47e44ed1dc17d3a94ec4bf8dd29810ab7882041c.tar.gz
git-47e44ed1dc17d3a94ec4bf8dd29810ab7882041c.tar.bz2
commit: Add commit_list prefix in two function names.
Add commit_list prefix to insert_by_date function and to sort_by_date, so it's clear that these functions refer to commit_list structure. Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fetch-pack.c')
-rw-r--r--builtin/fetch-pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/fetch-pack.c b/builtin/fetch-pack.c
index dbd8b7b..b999413 100644
--- a/builtin/fetch-pack.c
+++ b/builtin/fetch-pack.c
@@ -47,7 +47,7 @@ static void rev_list_push(struct commit *commit, int mark)
if (parse_commit(commit))
return;
- insert_by_date(commit, &rev_list);
+ commit_list_insert_by_date(commit, &rev_list);
if (!(commit->object.flags & COMMON))
non_common_revs++;
@@ -436,7 +436,7 @@ static int mark_complete(const char *path, const unsigned char *sha1, int flag,
if (o && o->type == OBJ_COMMIT) {
struct commit *commit = (struct commit *)o;
commit->object.flags |= COMPLETE;
- insert_by_date(commit, &complete);
+ commit_list_insert_by_date(commit, &complete);
}
return 0;
}