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

Re: Git global usage and tests

From
Jeff King <peff@peff.net>
Date
May 31, 2011, 15:04 UTC
Message-ID
<20110531150455.GA2594@sigill.intra.peff.net>
In-Reply-To
<BANLkTinW_se8VAhF9wk3KyzNHVc_wH_PqA@mail.gmail.com>
On Tue, May 31, 2011 at 01:52:31PM +0200, Ævar Arnfjörð Bjarmason wrote:
Show 5 quoted lines
> > IIRC, libgit2 has a lot looser license than ours, and the core GPLv2 part
> > of C git cannot be directly copied without authors' consent; relicensing
> > of necessary parts of C git needs to be arranged.
> 
> Seems like a PITA:

Some of the permission has already been granted. There is a file in libgit2 documenting who has done so. The set difference is:

  $ git log --format=%an parse-options.[ch] | sort -u >need
  $ perl -lne 'print $1 if /^ok\s+(.*) </' libgit2/git.git-authors >have
  $ comm -23 need have >remaining; cat remaining
  Alex Riesen
  Andreas Schwab
  Carlos Rica
  Gary V. Vaughan
  Giuseppe Scrivano
  Jake Goulding
  Jonathan Nieder
  Mark Lodato
  Michael J Gruber
  Michele Ballabio
  Mike Ralphson
  Miklos Vajna
  Nanako Shiraishi
  Olivier Marin
  Stephen Boyd
  Thomas Rast
  Tuncer Ayaz

which gets us halfway there. A few of the remaining contributions are quite small, too:

  $ git blame --line-porcelain parse-options.c |
      perl -lne 'print $1 if /author (.*)/' |
      sort | uniq -c |
      perl -pe 's/(\d+) /$1\t/' >count
  $ join -1 1 -2 2 -t "`printf '\t'`" -o "2.1 2.2" remaining count
      4 Alex Riesen
      3 Andreas Schwab
     23 Giuseppe Scrivano
     16 Jake Goulding
     38 Jonathan Nieder
     16 Mark Lodato
      7 Michele Ballabio
      1 Nanako Shiraishi
      1 Olivier Marin
     46 Stephen Boyd
     24 Thomas Rast
     22 Tuncer Ayaz

Fixing a typo or tweaking the "static" designator on a function is probably not copyrightable. And some of the medium-sized bits could possibly be dropped. Still, it is nice to be mindful of the contributions of others and get permission from everyone.

At any rate, the parse-options code would be linked into the new git2 binary, which should probably be GPL'd, anyway.

-Peff
Previous: Ævar Arnfjörð Bjarmason
Message 9 of 9 in “Git global usage and tests”
  1. Romain GeisslerMay 30, 2011
  2. Jeff KingMay 30, 2011
  3. Romain GeisslerMay 30, 2011
  4. Jeff KingMay 30, 2011
  5. Miles BaderMay 31, 2011
  6. Carlos Martín NietoMay 31, 2011
  7. Junio C HamanoMay 31, 2011
  8. Ævar Arnfjörð BjarmasonMay 31, 2011
  9. Jeff KingMay 31, 2011

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.