Re: Allow "git shortlog" to group by committer information
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Dec 20, 2016, 18:12 UTC
- Message-ID
- <16b115e0-3a7e-a5c2-1526-44bbcfc97db8@kdbg.org>
- In-Reply-To
- <20161216135141.yhas67pzfm7bxxum@sigill.intra.peff.net>
Am 16.12.2016 um 14:51 schrieb Jeff King:
Show 23 quoted lines
> diff --git a/t/t4201-shortlog.sh b/t/t4201-shortlog.sh > index ae08b57712..6c7c637481 100755 > --- a/t/t4201-shortlog.sh > +++ b/t/t4201-shortlog.sh > @@ -190,4 +190,17 @@ test_expect_success 'shortlog with --output=<file>' ' > test_line_count = 3 shortlog > ' > > +test_expect_success 'shortlog --committer (internal)' ' > + cat >expect <<-\EOF && > + 3 C O Mitter > + EOF > + git shortlog -nsc HEAD >actual && > + test_cmp expect actual > +' > + > +test_expect_success 'shortlog --committer (external)' ' > + git log --format=full | git shortlog -nsc >actual && > + test_cmp expect actual > +' > + > test_done >
May I kindly ask you to make this work on Windows, too? Just
sed -i -e s/MINGW/MINGW,HAVENOT/ t4201-shortlog.sh
on your Linux box and make it pass the tests.
Thank you so much in advance.
-- Hannes