From 96279605a66b946399657bb284767a51b56496e9 Mon Sep 17 00:00:00 2001 From: chenlujjj <953546398@qq.com> Date: Sun, 29 Aug 2021 16:00:09 +0800 Subject: [PATCH] refine help doc and add readme --- README.md | 27 +++++++++++++++++++++++++++ example.png | Bin 0 -> 17411 bytes main.go | 4 ++-- 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 README.md create mode 100644 example.png diff --git a/README.md b/README.md new file mode 100644 index 0000000..5458e03 --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# git-chart + +`gitchart` is a command line tool to show git commits distribution in the last several months. + +![](./example.png) + + + +## Install + +```shell +go get github.com/chenlujjj/gitchart +``` + +## Usage + +``` +$ gitchart -h + +Usage of gitchart: + -month int + since how many months ago (default 6) + -self + only count commits by myself. This flag would override 'username' flag + -username string + count commits by the 'username' author. If not set, would count all authors' commits +``` diff --git a/example.png b/example.png new file mode 100644 index 0000000000000000000000000000000000000000..0a015f22f4ac59124274691b37abdf44d8b2b819 GIT binary patch literal 17411 zcma*P1y~ec_%99!B7%TQN-TnabV&*Bij)Y_-Q6XPEG#J^NT-5ycXx|4NO!X|0!uEj z+`(^ofA`-1^Y_`6VRz1%nKS3S@B4`%NM2U*-rYxc(a_NDNxc?RL_@r3a-oeh)!rBB4?P-LOzWxI#)~8(t2KxG4{VYs(9b6SZehg96 zhxN3y()6|rru5Ln#cOLXk`XT6Qf@;_S7@!a!V94}FJtd2*qQ6iKgs`;d{&ua{r3H@ z2CMij1vIrcmhZU3QMbNZbYqFr_Ctc)SP3XqBPt2ZR^y@>>jkljX4$7u0O+E2N3k%K<3wxCl5tJH)jlLd<|3;DJ z&C3c$FA)<3)AtfVzI2??ip0W)k;hI%A$TEpBBja5Sev*w zIpxGY(!Vv(pPc{ELh}yyaTa%&k56-ekHJi;@AovZnpr9^`2o0vYMO>Ul{{!1;b$al2W?{7+O^mbt%)gZ_${6?K^1b zffi_(z!p02egwSH&~8P3K*I)pJ^z{43teYK0ltiVZfS*c64kjkH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fs!3X(}{g= zZ!ZpbXpIHqsX7In?c)$czXY)hnA!D!U4!acuM+wFn$$Gwkhba(oB?uVP zb-kUg@{6~NRhCLM@d0PFV{O2Vi4C|eU>$ay3?vCjOy6us0&}l4!i;v%`(f zjCpY0S~PW`Ajla(xf+0H_;FE`R|_sw$sy&@3-@uSmVQ-x79uV=QaZXI#`t9rq#S-` zZ9#ViMDnmm;PHqG8l$R|o!>e$Dktg8CMHTwkW}nr23;_QgiqRUgm*)DvtcKvQE4R6 z7YF-v;SGK~7e8V9$lyFfhAe@v?dShFn@yq!;G^@|if3Fa`C{bP855a43y&!)WWH7K)h$1g1qOb&0-`cX{!~C;I-5r@RK>T`*?X$e-w~M-+(6?lp&b|9h7ybXredev|#f zq9jiZwC-(BQltMjgrh%r8VUH8XweZ)|Al`V9|T|m|Np6U1FaGE>neYq&?kUYta|M& zoCILdeMb69;7>X*-25$oe;_F!q;GV^1_~9w`SawS_*@f^P>Sq5gV;>~EzqRIWyOkK H>HGdKArMpe literal 0 HcmV?d00001 diff --git a/main.go b/main.go index 44edec5..578a973 100644 --- a/main.go +++ b/main.go @@ -17,8 +17,8 @@ const cellWidth = 3 // 每个格子的宽度 func main() { months := flag.Int("month", 6, "since how many months ago") - username := flag.String("username", "", "check commits by the author. If not set, would check all authors' commits") - self := flag.Bool("self", false, "only check commits by myself. This flag would override `username` flag") + username := flag.String("username", "", "count commits by the 'username' author. If not set, would count all authors' commits") + self := flag.Bool("self", false, "only count commits by myself. This flag would override 'username' flag") flag.Parse() repo, err := os.Getwd()