public class GitStat extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GitStat.S |
| Modifier and Type | Field and Description |
|---|---|
static String |
STAT_DATE |
static String |
STAT_DATE_FULL |
static String |
STAT_HOUR |
static String |
STAT_MONTH |
static String |
STAT_MONTH_YEAR |
static String |
STAT_WEEK |
static String |
STAT_WEEK_YEAR |
| Constructor and Description |
|---|
GitStat() |
| Modifier and Type | Method and Description |
|---|---|
static List<GitStat.S> |
logAll(File workDir,
List<String> para) |
static List<GitStat.S> |
logAll(File workDir,
String since,
String until) |
static void |
main(String[] args) |
static void |
saveMysql(List<GitStat.S> infos,
String table,
DataSource dataSource) |
static void |
stat(List<GitStat.S> infos,
String pattern,
Map<String,String> alias)
Statistics by time and author, including number of commits, number of files committed, number of lines added, number of lines deleted.
|
static void |
stat(List<GitStat.S> infos,
String pattern,
Map<String,String> alias,
boolean han2) |
static void |
stat(PrintWriter out,
List<GitStat.S> infos,
String pattern,
Map<String,String> alias,
boolean han2)
Statistics by time and author, including number of commits, number of files committed, number of lines added, number of lines deleted.
|
static String |
trimFile(String... str)
convert the escaped utf8 name `Tst\344\270\255`
to unicode `Tstä¸`
|
public static final String STAT_WEEK_YEAR
public static final String STAT_WEEK
public static final String STAT_MONTH_YEAR
public static final String STAT_MONTH
public static final String STAT_DATE_FULL
public static final String STAT_DATE
public static final String STAT_HOUR
public static String trimFile(String... str)
convert the escaped utf8 name `Tst\344\270\255` to unicode `Tstä¸`
str - file namepublic static void saveMysql(List<GitStat.S> infos, String table, DataSource dataSource)
public static void stat(List<GitStat.S> infos, String pattern, Map<String,String> alias)
infos - informationpattern - date formatalias - alias:author, alias is case-insensitive.public static void stat(List<GitStat.S> infos, String pattern, Map<String,String> alias, boolean han2)
public static void stat(@Param.Out PrintWriter out, List<GitStat.S> infos, String pattern, Map<String,String> alias, boolean han2)
out - PrintWriter to write toinfos - informationpattern - date formatalias - alias:author, alias is case-insensitive.han2 - whether a Chinese char equal to 2 English charpublic static void main(String[] args)
Copyright © 2024. All rights reserved.