From 2422a010c696b05506fe90ede9239a9ae8a5aa76 Mon Sep 17 00:00:00 2001 From: jdeguzman Date: Thu, 9 May 2019 19:41:47 +0800 Subject: [PATCH 01/11] Add non interactive request for detailed stats by branch --- git-quick-stats | 150 ++++++++++++++++++++++++++++-------------------- 1 file changed, 87 insertions(+), 63 deletions(-) diff --git a/git-quick-stats b/git-quick-stats index 15173d2..154b60a 100755 --- a/git-quick-stats +++ b/git-quick-stats @@ -165,73 +165,89 @@ function option_picked() { # OUTS: None ################################################################################ function detailedGitStats() { - option_picked "Contribution stats (by author):" - git -c log.showSignature=false log --use-mailmap --no-merges --numstat \ - --pretty="format:commit %H%nAuthor: %aN <%aE>%nDate: %ad%n%n%w(0,4,4)%B%n" \ - $_since $_until $_pathspec | LC_ALL=C awk ' - function printStats(author) { - printf "\t%s:\n", author + local branch="${1:-}" + local _branch="" - if(more["total"] > 0) { - printf "\t insertions: %d (%.0f%%)\n", more[author], \ - (more[author] / more["total"] * 100) - } + if [[ -z "${branch}" ]]; then + option_picked "Contribution stats (by author):" + else + option_picked "Contribution stats (by author) on ${branch} branch:" + _branch="${branch}" + fi - if(less["total"] > 0) { - printf "\t deletions: %d (%.0f%%)\n", less[author], \ - (less[author] / less["total"] * 100) - } + { + + git -c log.showSignature=false log ${branch} --use-mailmap --no-merges --numstat \ + --pretty="format:commit %H%nAuthor: %aN <%aE>%nDate: %ad%n%n%w(0,4,4)%B%n" \ + $_since $_until $_pathspec | LC_ALL=C awk ' + function printStats(author) { + printf "\t%s:\n", author - if(file["total"] > 0) { - printf "\t files: %d (%.0f%%)\n", file[author], \ - (file[author] / file["total"] * 100) - } - - if(commits["total"] > 0) { - printf "\t commits: %d (%.0f%%)\n", commits[author], \ - (commits[author] / commits["total"] * 100) - } - - if (first[author] != "") { - printf "\t lines changed: %s\n", more[author] + less[author] - printf "\t first commit: %s\n", first[author] - printf "\t last commit: %s\n", last[author] - } - - printf "\n" - } - - /^Author:/ { - $1 = "" - author = $0 - commits[author] += 1 - commits["total"] += 1 - } - - /^Date:/ { - $1=""; - first[author] = substr($0, 2) - if(last[author] == "" ) { last[author] = first[author] } - } - - /^[0-9]/ { - more[author] += $1 - less[author] += $2 - file[author] += 1 - - more["total"] += $1 - less["total"] += $2 - file["total"] += 1 - } - - END { - for (author in commits) { - if (author != "total") { - printStats(author) + if(more["total"] > 0) { + printf "\t insertions: %d (%.0f%%)\n", more[author], \ + (more[author] / more["total"] * 100) } - } - printStats("total") - }' + + if(less["total"] > 0) { + printf "\t deletions: %d (%.0f%%)\n", less[author], \ + (less[author] / less["total"] * 100) + } + + if(file["total"] > 0) { + printf "\t files: %d (%.0f%%)\n", file[author], \ + (file[author] / file["total"] * 100) + } + + if(commits["total"] > 0) { + printf "\t commits: %d (%.0f%%)\n", commits[author], \ + (commits[author] / commits["total"] * 100) + } + + if (first[author] != "") { + printf "\t lines changed: %s\n", more[author] + less[author] + printf "\t first commit: %s\n", first[author] + printf "\t last commit: %s\n", last[author] + } + + printf "\n" + } + + /^Author:/ { + $1 = "" + author = $0 + commits[author] += 1 + commits["total"] += 1 + } + + /^Date:/ { + $1=""; + first[author] = substr($0, 2) + if(last[author] == "" ) { last[author] = first[author] } + } + + /^[0-9]/ { + more[author] += $1 + less[author] += $2 + file[author] += 1 + + more["total"] += $1 + less["total"] += $2 + file["total"] += 1 + } + + END { + for (author in commits) { + if (author != "total") { + printStats(author) + } + } + printStats("total") + }' + } || { + # If branch does not exist + echo "Branch does not exist"; + show_menu + } } ################################################################################ @@ -492,6 +508,14 @@ if [[ "$#" -eq 1 ]]; then case "$1" in -r|--suggest-reviewers) suggestReviewers;; -T|--detailed-git-stats) detailedGitStats;; + # TODO + -R|--git-stats-by-branch) + branch="" + while [[ -z "${branch}" ]]; do + read -r -p "Which branch? " branch + done + detailedGitStats "${branch}";; + # END TODO -b|--branch-tree) branchTree;; -d|--commits-per-day) commitsPerDay;; -a|--commits-per-author) commitsPerAuthor;; From e6ffee5850f3a85f08291a91c016936e58ac3fa6 Mon Sep 17 00:00:00 2001 From: jdeguzman Date: Thu, 9 May 2019 20:17:57 +0800 Subject: [PATCH 02/11] Add branch existence validation --- git-quick-stats | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/git-quick-stats b/git-quick-stats index 154b60a..fd32c84 100755 --- a/git-quick-stats +++ b/git-quick-stats @@ -165,21 +165,34 @@ function option_picked() { # OUTS: None ################################################################################ function detailedGitStats() { + local is_branch_existing=false local branch="${1:-}" local _branch="" + + # Check if branch is existing + { + does_exist=`git show-ref refs/heads/${branch}` + if [ -n "$does_exist" ]; then + is_branch_existing=true + _branch="${branch}" + fi + } || { + is_branch_existing=false + _branch="" + } - if [[ -z "${branch}" ]]; then - option_picked "Contribution stats (by author):" + # Prompt message + if $is_branch_existing; then + option_picked "Contribution stats (by author) on ${_branch} branch:" + elif [ -z "${_branch}" ]; then + option_picked "Branch does not exist.\nContribution stats (by author):" else - option_picked "Contribution stats (by author) on ${branch} branch:" - _branch="${branch}" + option_picked "Contribution stats (by author):" fi - { - - git -c log.showSignature=false log ${branch} --use-mailmap --no-merges --numstat \ - --pretty="format:commit %H%nAuthor: %aN <%aE>%nDate: %ad%n%n%w(0,4,4)%B%n" \ - $_since $_until $_pathspec | LC_ALL=C awk ' + git -c log.showSignature=false log ${_branch} --use-mailmap --no-merges --numstat \ + --pretty="format:commit %H%nAuthor: %aN <%aE>%nDate: %ad%n%n%w(0,4,4)%B%n" \ + $_since $_until $_pathspec | LC_ALL=C awk ' function printStats(author) { printf "\t%s:\n", author @@ -243,11 +256,6 @@ function detailedGitStats() { } printStats("total") }' - } || { - # If branch does not exist - echo "Branch does not exist"; - show_menu - } } ################################################################################ @@ -508,14 +516,12 @@ if [[ "$#" -eq 1 ]]; then case "$1" in -r|--suggest-reviewers) suggestReviewers;; -T|--detailed-git-stats) detailedGitStats;; - # TODO -R|--git-stats-by-branch) branch="" while [[ -z "${branch}" ]]; do read -r -p "Which branch? " branch done detailedGitStats "${branch}";; - # END TODO -b|--branch-tree) branchTree;; -d|--commits-per-day) commitsPerDay;; -a|--commits-per-author) commitsPerAuthor;; From 625ec404bcd1c317f6b03147b0d63eeb3a8fff3a Mon Sep 17 00:00:00 2001 From: Joshua de Guzman Date: Fri, 10 May 2019 00:24:16 +0800 Subject: [PATCH 03/11] Update validation rules --- git-quick-stats | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/git-quick-stats b/git-quick-stats index fd32c84..a56dd27 100755 --- a/git-quick-stats +++ b/git-quick-stats @@ -169,23 +169,26 @@ function detailedGitStats() { local branch="${1:-}" local _branch="" - # Check if branch is existing - { - does_exist=`git show-ref refs/heads/${branch}` - if [ -n "$does_exist" ]; then - is_branch_existing=true - _branch="${branch}" - fi - } || { - is_branch_existing=false - _branch="" - } + # Check if requesting for a specific branch + if [ -n "${branch}" ]; then + # Check if branch exist + { + does_exist=`git show-ref refs/heads/${branch}` + if [ -n "$does_exist" ]; then + is_branch_existing=true + _branch=${branch} + fi + } || { + is_branch_existing=false + _branch="" + } + fi # Prompt message - if $is_branch_existing; then + if [[ $is_branch_existing && -n "${_branch}" ]]; then option_picked "Contribution stats (by author) on ${_branch} branch:" - elif [ -z "${_branch}" ]; then - option_picked "Branch does not exist.\nContribution stats (by author):" + elif [[ -n "${branch}" && -z "${_branch}" ]]; then + option_picked "Branch \"${branch}\" does not exist.\nContribution stats (by author):" else option_picked "Contribution stats (by author):" fi From e9f085f20eb394844340c34c113580f008159148 Mon Sep 17 00:00:00 2001 From: Joshua de Guzman Date: Fri, 10 May 2019 01:08:53 +0800 Subject: [PATCH 04/11] Add git stats by branch to the options and update unit test --- git-quick-stats | 2 ++ tests/commands_test.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/git-quick-stats b/git-quick-stats index a56dd27..00df50c 100755 --- a/git-quick-stats +++ b/git-quick-stats @@ -76,6 +76,8 @@ OPTIONS show the best people to contact to review code -T, --detailed-git-stats give a detailed list of git stats + -R, --git-stats-by-branch + see detailed list of git stats by branch -d, --commits-per-day displays a list of commits per day -m, --commits-by-month diff --git a/tests/commands_test.sh b/tests/commands_test.sh index 8d6fcaf..d4c4b31 100755 --- a/tests/commands_test.sh +++ b/tests/commands_test.sh @@ -4,7 +4,7 @@ src="./git-quick-stats" #assert "$src fail" "Invalid argument\n\nNAME\n git-quick-stats - Simple and efficient way to access various stats in a git repo\n\nSYNOPSIS\n For non-interactive mode: git-quick-stats [OPTIONS]\n For interactive mode: git-quick-stats\n\nDESCRIPTION\n Any git repository contains tons of information about commits, contributors,\n and files. Extracting this information is not always trivial, mostly because\n of a gadzillion options to a gadzillion git commands.\n\n This program allows you to see detailed information about a git repository.\n\nOPTIONS\n suggestReviewers - see best people to contact to review code\n detailedGitStats - displays a detailed list of git status\n commitsPerDay - displays a list of commits per day\n commitsByMonth - displays a list of commits per month\n commitsByWeekday - displays a list of commits per weekday\n commitsByHour - displays a list of commits per hour\n commitsByAuthorByHour - see a list of commits per hour by author\n commitsPerAuthor - displays a list of commits per author\n myDailyStats - see your current daily stats\n contributors - see a list of all contributors\n branchTree - see an ASCII graph of the git repo\n branchesByDate - show branches by date\n changelogs - see changelogs\n changelogsByAuthor - see changelogs by author\n\nADDITIONAL USAGE\n You can set _GIT_SINCE and _GIT_UNTIL to limit the git time log\n ex: export _GIT_SINCE=2017-20-01\n You can set _GIT_LIMIT for limited output log\n ex: export _GIT_LIMIT=20\n You can exclude a directory from the stats by using pathspec\n ex: export _GIT_PATHSPEC=':!directory'\n \nCONTRIBUTION\n For details regarding contribution, please see the contribution.md document\n\nLICENSE\n This is under the MIT license. See LICENSE in the repo for more info" -assert "$src fail" "Invalid argument\n\nNAME\n git-quick-stats - Simple and efficient way to access various stats in a git repo\n\nSYNOPSIS\n For non-interactive mode: git-quick-stats [OPTIONS]\n For interactive mode: git-quick-stats\n\nDESCRIPTION\n Any git repository contains tons of information about commits, contributors,\n and files. Extracting this information is not always trivial, mostly because\n of a gadzillion options to a gadzillion git commands.\n\n This program allows you to see detailed information about a git repository.\n\nOPTIONS\n -r, --suggest-reviewers\n show the best people to contact to review code\n -T, --detailed-git-stats\n give a detailed list of git stats\n -d, --commits-per-day\n displays a list of commits per day\n -m, --commits-by-month\n displays a list of commits per month\n -w, --commits-by-weekday\n displays a list of commits per weekday\n -o, --commits-by-hour\n displays a list of commits per hour\n -A, --commits-by-author-by-hour\n displays a list of commits per hour by author\n -a, --commits-per-author\n displays a list of commits per author\n -S, --my-daily-stats\n see your current daily stats\n -C, --contributors\n see a list of everyone who contributed to the repo\n -b, --branch-tree\n show an ASCII graph of the git repo branch history\n -D, --branches-by-date\n show branches by date\n -c, --changelogs\n see changelogs\n -L, --changelogs-by-author\n see changelogs by author\n -h, -?, --help\n display this help text in the terminal\n\nADDITIONAL USAGE\n You can set _GIT_SINCE and _GIT_UNTIL to limit the git time log\n ex: export _GIT_SINCE=\"2017-20-01\"\n You can set _GIT_LIMIT for limited output log\n ex: export _GIT_LIMIT=20\n You can exclude a directory from the stats by using pathspec\n ex: export _GIT_PATHSPEC=':!directory'" +assert "$src fail" "Invalid argument\n\nNAME\n git-quick-stats - Simple and efficient way to access various stats in a git repo\n\nSYNOPSIS\n For non-interactive mode: git-quick-stats [OPTIONS]\n For interactive mode: git-quick-stats\n\nDESCRIPTION\n Any git repository contains tons of information about commits, contributors,\n and files. Extracting this information is not always trivial, mostly because\n of a gadzillion options to a gadzillion git commands.\n\n This program allows you to see detailed information about a git repository.\n\nOPTIONS\n -r, --suggest-reviewers\n show the best people to contact to review code\n -T, --detailed-git-stats\n give a detailed list of git stats\n -R, --git-stats-by-branch\n see detailed list of git stats by branch\n -d, --commits-per-day\n displays a list of commits per day\n -m, --commits-by-month\n displays a list of commits per month\n -w, --commits-by-weekday\n displays a list of commits per weekday\n -o, --commits-by-hour\n displays a list of commits per hour\n -A, --commits-by-author-by-hour\n displays a list of commits per hour by author\n -a, --commits-per-author\n displays a list of commits per author\n -S, --my-daily-stats\n see your current daily stats\n -C, --contributors\n see a list of everyone who contributed to the repo\n -b, --branch-tree\n show an ASCII graph of the git repo branch history\n -D, --branches-by-date\n show branches by date\n -c, --changelogs\n see changelogs\n -L, --changelogs-by-author\n see changelogs by author\n -h, -?, --help\n display this help text in the terminal\n\nADDITIONAL USAGE\n You can set _GIT_SINCE and _GIT_UNTIL to limit the git time log\n ex: export _GIT_SINCE=\"2017-20-01\"\n You can set _GIT_LIMIT for limited output log\n ex: export _GIT_LIMIT=20\n You can exclude a directory from the stats by using pathspec\n ex: export _GIT_PATHSPEC=':!directory'" assert_raises "$src fail" 1 assert_contains "$src --suggest-reviewers" "Suggested code reviewers (based on git history)" 127 From c7d456465efe5c1976a37a93831948b94c4f530b Mon Sep 17 00:00:00 2001 From: jdeguzman Date: Fri, 10 May 2019 11:00:38 +0800 Subject: [PATCH 05/11] Optimize branch existence validator --- git-quick-stats | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/git-quick-stats b/git-quick-stats index 00df50c..74d26ee 100755 --- a/git-quick-stats +++ b/git-quick-stats @@ -172,18 +172,15 @@ function detailedGitStats() { local _branch="" # Check if requesting for a specific branch - if [ -n "${branch}" ]; then + if [[ -n "${branch}" ]]; then # Check if branch exist - { - does_exist=`git show-ref refs/heads/${branch}` - if [ -n "$does_exist" ]; then - is_branch_existing=true - _branch=${branch} - fi - } || { + if git show-ref refs/heads/"${branch}"; then + is_branch_existing=true + _branch="${branch}" + else is_branch_existing=false _branch="" - } + fi fi # Prompt message From 52f4eff27cbc884dca0deab84c8c985c8f427de9 Mon Sep 17 00:00:00 2001 From: jdeguzman Date: Fri, 10 May 2019 18:00:25 +0800 Subject: [PATCH 06/11] Add on the current branch --- git-quick-stats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-quick-stats b/git-quick-stats index 74d26ee..8dc9e85 100755 --- a/git-quick-stats +++ b/git-quick-stats @@ -187,9 +187,9 @@ function detailedGitStats() { if [[ $is_branch_existing && -n "${_branch}" ]]; then option_picked "Contribution stats (by author) on ${_branch} branch:" elif [[ -n "${branch}" && -z "${_branch}" ]]; then - option_picked "Branch \"${branch}\" does not exist.\nContribution stats (by author):" + option_picked "Branch \"${branch}\" does not exist.\nContribution stats (by author) on the current branch:" else - option_picked "Contribution stats (by author):" + option_picked "Contribution stats (by author) on the current branch:" fi git -c log.showSignature=false log ${_branch} --use-mailmap --no-merges --numstat \ From c3194f77e31c51b38602ca6f2a983bcb84ed1860 Mon Sep 17 00:00:00 2001 From: jdeguzman Date: Fri, 10 May 2019 18:08:38 +0800 Subject: [PATCH 07/11] Add interactive menu for the detailed stats by branch --- git-quick-stats | 58 +++++++++++++++++++++++++++---------------------- 1 file changed, 32 insertions(+), 26 deletions(-) diff --git a/git-quick-stats b/git-quick-stats index 8dc9e85..6f78660 100755 --- a/git-quick-stats +++ b/git-quick-stats @@ -127,21 +127,22 @@ function show_menu() { echo -e "\n${red} Generate: ${normal}" echo -e "${cyan} ${yellow} 1)${cyan} Contribution stats (by author) ${normal}" - echo -e "${cyan} ${yellow} 2)${cyan} Git changelogs (last $_limit days)${normal}" - echo -e "${cyan} ${yellow} 3)${cyan} Git changelogs by author ${normal}" - echo -e "${cyan} ${yellow} 4)${cyan} My daily status ${normal}" + echo -e "${cyan} ${yellow} 2)${cyan} Contribution stats (by author) on a specific branch ${normal}" + echo -e "${cyan} ${yellow} 3)${cyan} Git changelogs (last $_limit days)${normal}" + echo -e "${cyan} ${yellow} 4)${cyan} Git changelogs by author ${normal}" + echo -e "${cyan} ${yellow} 5)${cyan} My daily status ${normal}" echo -e "${red} List: ${normal}" - echo -e "${cyan} ${yellow} 5)${cyan} Branch tree view (last $_limit)${normal}" - echo -e "${cyan} ${yellow} 6)${cyan} All branches (sorted by most recent commit) ${normal}" - echo -e "${cyan} ${yellow} 7)${cyan} All contributors (sorted by name) ${normal}" - echo -e "${cyan} ${yellow} 8)${cyan} Git commits per author ${normal}" - echo -e "${cyan} ${yellow} 9)${cyan} Git commits per date ${normal}" - echo -e "${cyan} ${yellow} 10)${cyan} Git commits per month ${normal}" - echo -e "${cyan} ${yellow} 11)${cyan} Git commits per weekday ${normal}" - echo -e "${cyan} ${yellow} 12)${cyan} Git commits per hour ${normal}" - echo -e "${cyan} ${yellow} 13)${cyan} Git commits by author per hour ${normal}" + echo -e "${cyan} ${yellow} 6)${cyan} Branch tree view (last $_limit)${normal}" + echo -e "${cyan} ${yellow} 7)${cyan} All branches (sorted by most recent commit) ${normal}" + echo -e "${cyan} ${yellow} 8)${cyan} All contributors (sorted by name) ${normal}" + echo -e "${cyan} ${yellow} 9)${cyan} Git commits per author ${normal}" + echo -e "${cyan} ${yellow} 10)${cyan} Git commits per date ${normal}" + echo -e "${cyan} ${yellow} 11)${cyan} Git commits per month ${normal}" + echo -e "${cyan} ${yellow} 12)${cyan} Git commits per weekday ${normal}" + echo -e "${cyan} ${yellow} 13)${cyan} Git commits per hour ${normal}" + echo -e "${cyan} ${yellow} 14)${cyan} Git commits by author per hour ${normal}" echo -e "${red} Suggest: ${normal}" - echo -e "${cyan} ${yellow} 14)${cyan} Code reviewers (based on git history) ${normal}" + echo -e "${cyan} ${yellow} 15)${cyan} Code reviewers (based on git history) ${normal}" echo -e "\n${yellow}Please enter a menu option or ${red}press enter to exit. ${normal}" read -r opt } @@ -561,27 +562,32 @@ while [[ "${opt}" != "" ]]; do clear case "${opt}" in 1) detailedGitStats; show_menu;; - 2) changelogs; show_menu;; - 3) author="" + 2) branch="" + while [[ -z "${branch}" ]]; do + read -r -p "Which branch? " branch + done + detailedGitStats "${branch}"; show_menu;; + 3) changelogs; show_menu;; + 4) author="" while [[ -z "${author}" ]]; do read -r -p "Which author? " author done changelogs "${author}"; show_menu;; - 4) myDailyStats; show_menu;; - 5) branchTree; show_menu;; - 6) branchesByDate; show_menu;; - 7) contributors; show_menu;; - 8) commitsPerAuthor; show_menu;; - 9) commitsPerDay; show_menu;; - 10) commitsByMonth; show_menu;; - 11) commitsByWeekday; show_menu;; - 12) commitsByHour; show_menu;; - 13) author="" + 5) myDailyStats; show_menu;; + 6) branchTree; show_menu;; + 7) branchesByDate; show_menu;; + 8) contributors; show_menu;; + 9) commitsPerAuthor; show_menu;; + 10) commitsPerDay; show_menu;; + 11) commitsByMonth; show_menu;; + 12) commitsByWeekday; show_menu;; + 13) commitsByHour; show_menu;; + 14) author="" while [[ -z "${author}" ]]; do read -r -p "Which author? " author done commitsByHour "${author}"; show_menu;; - 14) suggestReviewers; show_menu;; + 15) suggestReviewers; show_menu;; q|"\n") exit;; *) clear; option_picked "Pick an option from the menu"; show_menu;; esac From 48c062f8fad1ff307703f7fa2ca5d705b4ab80f5 Mon Sep 17 00:00:00 2001 From: jdeguzman Date: Fri, 10 May 2019 18:57:04 +0800 Subject: [PATCH 08/11] Prevent logging refs when checking branch existence --- git-quick-stats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-quick-stats b/git-quick-stats index 6f78660..76696a9 100755 --- a/git-quick-stats +++ b/git-quick-stats @@ -175,7 +175,7 @@ function detailedGitStats() { # Check if requesting for a specific branch if [[ -n "${branch}" ]]; then # Check if branch exist - if git show-ref refs/heads/"${branch}"; then + if [[ $(git show-ref refs/heads/"${branch}") ]] ; then is_branch_existing=true _branch="${branch}" else From dd6a23568ed493bafc51a55a44ffe8c88a9e8a61 Mon Sep 17 00:00:00 2001 From: Joshua de Guzman Date: Fri, 10 May 2019 23:50:32 +0800 Subject: [PATCH 09/11] Add new feature in README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 0448655..b4bc732 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,8 @@ Possible arguments in short and long form: show the best people to contact to review code -T, --detailed-git-stats give a detailed list of git stats +-R, --git-stats-by-branch + see detailed list of git stats by branch -d, --commits-per-day displays a list of commits per day -m, --commits-by-month From 096fd86324a80395e03bd091f6ebdc5046328bb6 Mon Sep 17 00:00:00 2001 From: Joshua de Guzman Date: Fri, 10 May 2019 23:59:12 +0800 Subject: [PATCH 10/11] Add new feature in man page --- git-quick-stats.1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/git-quick-stats.1 b/git-quick-stats.1 index b98af27..ccefcbe 100644 --- a/git-quick-stats.1 +++ b/git-quick-stats.1 @@ -24,12 +24,16 @@ This program allows you to see detailed information about a git repository. show the best people to contact to review code .HP .PP -.PP \fB\-T\fR, \fB\-\-detailed\-git\-stats\fR .IP give a detailed list of git stats .HP .PP +\fB\-R\fR, \fB\-\-git\-stats\-by\-branch\fR +.IP +see detailed list of git stats by branch +.HP +.PP \fB\-d\fR, \fB\-\-commits\-per\-day\fR .IP displays a list of commits per day From 1282e4b46f4a666be205ed103f86d9d0fc7dd165 Mon Sep 17 00:00:00 2001 From: Tom Ice Date: Fri, 10 May 2019 13:18:12 -0400 Subject: [PATCH 11/11] Updating README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b4bc732..59cf6dc 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ > Any git repository contains tons of information about commits, contributors, and files. Extracting this information is not always trivial, mostly because of a gadzillion options to a gadzillion git commands – I don’t think there is a single person alive who knows them all. Probably not even [Linus Torvalds](https://github.com/torvalds) himself :). -![screenshot](https://user-images.githubusercontent.com/6382002/52440487-86acde00-2b1e-11e9-9bb4-ca42ce2d0fc0.png) +![mainMenuScreenshot](https://user-images.githubusercontent.com/8818630/57544421-4891a700-7325-11e9-9cdd-034a6619ae0f.png) ## Table of Contents @@ -35,9 +35,9 @@ ## Screenshots -![screenshot-3](https://user-images.githubusercontent.com/6382002/52440631-f6bb6400-2b1e-11e9-98f4-2a75c8fc8435.png) +![commitsByWeekdayScreenshot](https://user-images.githubusercontent.com/8818630/57544420-4891a700-7325-11e9-876a-15df90bce420.png) -![screenshot-2](https://user-images.githubusercontent.com/6382002/52440598-db505900-2b1e-11e9-8f4a-bb8c55757c62.png) +![commitsByHourScreenshot](https://user-images.githubusercontent.com/8818630/57544419-47f91080-7325-11e9-82d3-57e4f98be240.png) ## Usage