summaryrefslogtreecommitdiff
path: root/shortlog.h
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2008-02-25 18:24:14 -0500
committerJunio C Hamano <gitster@pobox.com>2008-02-25 19:57:06 -0800
commit552bcac3f9f34833cf546f8c197da4c1985a0b84 (patch)
treefe809e852151e65fbaa0dbbc3e4a23ce4b1eea58 /shortlog.h
parent1ba0836307c463ce6de11868c85aa46c7396dae4 (diff)
downloadgit-552bcac3f9f34833cf546f8c197da4c1985a0b84.tar.gz
Add API access to shortlog
Shortlog is gives a pretty simple API for cases where you're already identifying all of the individual commits. Make this available to other code instead of requiring them to use the revision API and command line. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Diffstat (limited to 'shortlog.h')
-rw-r--r--shortlog.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/shortlog.h b/shortlog.h
new file mode 100644
index 0000000000..31ff491b74
--- /dev/null
+++ b/shortlog.h
@@ -0,0 +1,26 @@
+#ifndef SHORTLOG_H
+#define SHORTLOG_H
+
+#include "path-list.h"
+
+struct shortlog {
+ struct path_list list;
+ int summary;
+ int wrap_lines;
+ int sort_by_number;
+ int wrap;
+ int in1;
+ int in2;
+
+ char *common_repo_prefix;
+ int email;
+ struct path_list mailmap;
+};
+
+void shortlog_init(struct shortlog *log);
+
+void shortlog_add_commit(struct shortlog *log, struct commit *commit);
+
+void shortlog_output(struct shortlog *log);
+
+#endif