-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Daniel Barkalow
authored and
Junio C Hamano
committed
Feb 26, 2008
1 parent
1ba0836
commit 552bcac
Showing
2 changed files
with
106 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |