This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/bin/bash | |
startCommit=$2 | |
initialCommit=`git rev-parse HEAD` # commit of the repository before we start the work | |
file='cloc-stats.csv' | |
# use sed to remove duplicate lines with commit ID, git-rev-list not fully accepting my format, arrrgh | |
if [[ $1 = "--help" || $1 = "-h" ]]; then | |
echo "Generate 'cloc per commit' stats from a GIT repository by following the parent links from the given commit." |