Re: [PATCH] --count feature for git shortlog
- From
Lawrence Siebert <lawrencesiebert@gmail.com>
- Date
- Jun 29, 2015, 16:46 UTC
- Message-ID
- <CAKDoJU4MHGa-c=F0m17rgWUCS2xFwiSb1pmDnYztoDnzRaRKCw@mail.gmail.com>
- In-Reply-To
- <CAKDoJU4HcGoOS83MKwsQBXztYrDomMd9N-2SKc6iRyNhQQM5Eg@mail.gmail.com>
Junio,
I appreciate your help. Okay, That all makes sense.
I would note that something like: git shortlog -s "$FILENAME: | cut -f 1 | paste -sd+ - | bc
seems like it run much faster then:
git log --oneline "$FILENAME" | wc -l
Which was why I was looking at shortlog. I was using it to sort files by commit count when provided a list of files, which git rev-list doesn't really work for.
Anyway I can try and put it in log proper, if you think that's the best place.
Thank you, Lawrence Siebert