git-quick-stats icon indicating copy to clipboard operation
git-quick-stats copied to clipboard

Support multiple repositories

Open emexelem opened this issue 5 years ago • 2 comments

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={}

emexelem avatar Dec 10 '20 18:12 emexelem

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

treussart avatar May 17 '21 19:05 treussart

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

linusnorton avatar Dec 01 '23 09:12 linusnorton