Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2008-02-26 02:24:14 +0300
committerJunio C Hamano <gitster@pobox.com>2008-02-26 06:57:06 +0300
commit552bcac3f9f34833cf546f8c197da4c1985a0b84 (patch)
treefe809e852151e65fbaa0dbbc3e4a23ce4b1eea58 /shortlog.h
parent1ba0836307c463ce6de11868c85aa46c7396dae4 (diff)
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