git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: Jakub NarebskiNext: Petr Baudis
Message 7 of 8 in “What's in git.git”
  1. Junio C HamanoNov 18, 2006
  2. Junio C HamanoNov 18, 2006
  3. Johannes SchindelinNov 19, 2006
  4. Jakub NarebskiNov 19, 2006
  5. Johannes SchindelinNov 19, 2006
  6. Jakub NarebskiNov 19, 2006
  7. Johannes SchindelinNov 19, 2006
  8. Petr BaudisNov 19, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.