Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple repositories #117

Open
emexelem opened this issue Dec 10, 2020 · 2 comments
Open

Support multiple repositories #117

emexelem opened this issue Dec 10, 2020 · 2 comments

Comments

@emexelem
Copy link

Describe the solution you'd like
I have a large number of repositories and I would like to produce the contribution stats by author aggregated by multiple repositories.
An additional parameter could be provided on the command line to find repositories, or provide the list of repositories directly using find and xargs git quick-stats --repositoriesList={}

@treussart
Copy link

Hi, I suggest using git-quick-stats with a script, example :

WORKING_DIR="$(dirname "$0")/"
cd "${WORKING_DIR}" || exit 1
mkdir -p "${WORKING_DIR}/results/"

export _GIT_LOG_OPTIONS="--ignore-all-space --ignore-blank-lines"
export _GIT_BRANCH="master"

for d in ~/git/*/; do
      cd "${d}" || true
      git-quick-stats --git-stats-by-branch >"${WORKING_DIR}/results/$(basename ${d}).txt"
done

@linusnorton
Copy link

That script is useful but I think it would still be nice to have it aggregate the statistics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants