aboutsummaryrefslogtreecommitdiffstats
path: root/commit.c
diff options
context:
space:
mode:
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/commit.c b/commit.c
index 213bc98c18..e8eb0aec55 100644
--- a/commit.c
+++ b/commit.c
@@ -1347,3 +1347,13 @@ struct commit_list **commit_list_append(struct commit *commit,
new->next = NULL;
return &new->next;
}
+
+void print_commit_list(struct commit_list *list,
+ const char *format_cur,
+ const char *format_last)
+{
+ for ( ; list; list = list->next) {
+ const char *format = list->next ? format_cur : format_last;
+ printf(format, sha1_to_hex(list->item->object.sha1));
+ }
+}
7e77d2733f94&follow=1'>http: release strbuf on disabled alternatesEric Wong1-0/+2 2017-03-06http: inform about alternates-as-redirects behaviorEric Wong1-3/+5 2017-03-03t7006: replace dubious testJohannes Schindelin1-1/+11 2017-03-03p7000: add test for filter-branch with --prune-emptyDevin J. Pohly1-0/+5 2017-03-03filter-branch: fix --prune-empty on parentless commitsDevin J. Pohly3-10/+10 2017-03-03t7003: ensure --prune-empty removes entire branch when applicableDevin J. Pohly1-0/+7 2017-03-03t7003: ensure --prune-empty can prune root commitDevin J. Pohly1-0/+30 2017-03-03line-log.c: prevent crash during union of too many rangesAllan Xavier2-8/+17 2017-03-03contrib: git-remote-{bzr,hg} placeholders don't need PythonSebastian Schuberth2-18/+14 2017-03-03t/perf: add fallback for pre-bin-wrappers versions of gitJeff King1-0/+3 2017-03-03t/perf: use $MODERN_GIT for all repo-copying stepsJeff King1-2/+2 2017-03-03t/perf: export variable used in other blocksJonathan Tan1-1/+2 2017-03-02Documentation: improve description for core.quotePathAndreas Heiduk9-39/+48 2017-03-02fetch-pack: add specific error for fetching an unadvertised objectMatt McCutchen3-18/+35 2017-03-02fetch_refs_via_pack: call report_unmatched_refsMatt McCutchen2-6/+11 2017-03-02fetch-pack: move code to report unmatched refs to a functionMatt McCutchen4-9/+23 2017-03-02checkout: restrict @-expansions when finding branchJeff King2-1/+11 2017-03-02strbuf_check_ref_format(): expand only local branchesJeff King2-3/+3 2017-03-02branch: restrict @-expansions when deletingJeff King2-4/+7