Re: What's in git.git
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Nov 19, 2006, 19:06 UTC
- Message-ID
- <Pine.LNX.4.63.0611191932270.13772@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <200611191931.32193.jnareb@gmail.com>
Hi,
On Sun, 19 Nov 2006, Jakub Narebski wrote:
Show 10 quoted lines
> Johannes Schindelin wrote: > > > I do not understand. What paths are handled by git-shortlog? > > I was under (perhaps false) impression that somewhere in git-shortlog > there is shortening of > Merge branch 'master' of git://git.kernel.org/pub/scm/git/git > messages, shortening the URL part. > > Perhaps this was only other example of hard-coded git-for-Linux-ness.
I found it: git-shortlog.perl:28 says
$desc =~ s#/pub/scm/linux/kernel/git/#/.../#g;
And in builtin-shortlog.c:90 you can read
const char *dot3 = "/pub/scm/linux/kernel/git/";
and in lines 133--136:
while ((p = strstr(buffer, dot3)) != NULL) {
memcpy(p, "...", 3);
strcpy(p + 2, p + sizeof(dot3) - 1);
}So, not only did I forget that git-shortlog has the path shortening, but I also forgot that I implemented it in the builtin shortlog, too.
Ciao, Dscho