summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-04-29 17:51:30 -0700
committerJunio C Hamano <gitster@pobox.com>2012-04-29 17:51:30 -0700
commit6a8989709efbd6d5187005497907264fde026ae9 (patch)
tree9a575ab5e173c5e5f0203a6053531eb3d0055bec /commit.h
parent5fa8bf6bf9d20ccb37ed46ec7027a9ac64b2a2a7 (diff)
parenta81a7fbc1a423b112158c2d8647ee80caba108ef (diff)
downloadgit-6a8989709efbd6d5187005497907264fde026ae9.tar.gz
Merge branch 'rs/commit-list-append'
There is no need for "commit_list_reverse()" function that only invites inefficient code. By René Scharfe * rs/commit-list-append: commit: remove commit_list_reverse() revision: append to list instead of insert and reverse sequencer: export commit_list_append()
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/commit.h b/commit.h
index f8d250d6f6..ccaa20b262 100644
--- a/commit.h
+++ b/commit.h
@@ -53,11 +53,12 @@ int find_commit_subject(const char *commit_buffer, const char **subject);
struct commit_list *commit_list_insert(struct commit *item,
struct commit_list **list);
+struct commit_list **commit_list_append(struct commit *commit,
+ struct commit_list **next);
unsigned commit_list_count(const struct commit_list *l);
struct commit_list *commit_list_insert_by_date(struct commit *item,
struct commit_list **list);
void commit_list_sort_by_date(struct commit_list **list);
-void commit_list_reverse(struct commit_list **list_p);
void free_commit_list(struct commit_list *list);