modess / git-pretty-stats

Self hosted graphs for Git repositories in PHP
Other
142 stars 24 forks source link

Stats on branches? #24

Closed carmosin closed 10 years ago

carmosin commented 10 years ago

Hej! I'd like to know whether it is possible to see statistics on specific branches? I've tried with cloning only certain branches or changing branch in my repo, and since that doesn't work I'm at loss (as I am not very proficient in git). /Jenny

modess commented 10 years ago

Hej! It will use for the current checked out branch in your repository. So lets say you want the statistics for a branch called develop you can achieve this to clone the repository and then checkout that branch:

cd repositories
git clone <repository-url>
cd <repository-folder>
git fetch origin
git checkout -b develop origin/develop
carmosin commented 10 years ago

Tack! I think my main problem was that the memory limit in php.ini was set on default 128M and exhausted when trying to parse the branch stats. I followed your instructions and set the mem limit to 256M and now it works wonders. :)

modess commented 10 years ago

Glad to hear it :)