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

Re: Git Option/Subcommand Processing Library?

From
MBMichael Bergin <michaeljbergin@gmail.com>
Date
Jul 25, 2009, 19:51 UTC
Message-ID
<D30CE3A7-176D-4132-88A6-23C46A4EA185@gmail.com>
In-Reply-To
<alpine.DEB.1.00.0907251830420.8306@pacific.mpi-cbg.de>

Thanks for the pointers. I also want to create a generic library for command facades like git. For that I will probably use git.c as a guide but to make it generic I would need to add/rearrange code. GPLv2 works fine for my purposes. I hope this isn't an offensive question or anything but would releasing just the library under LGPL be considered?

On Jul 25, 2009, at 12:32 PM, Johannes Schindelin wrote:
Show 22 quoted lines
> Hi,
>
> On Sat, 25 Jul 2009, Michael Bergin wrote:
>
>> Is there a library containing just the option and subcommand  
>> processing
>> code from git?  I saw a post about gitopt but can't find a project  
>> with
>> that name.
>
> The "library" is contained in the files parse-options.[ch] in  
> git.git.  I
> am unsure if you need strbuf.c, too, or not.
>
>> If not is there any problem with me doing this?
>
> Not if you abide by the license of git.git, which is GPLv2.
>
> Ciao,
> Dscho
>
>
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 5 in “Git Option/Subcommand Processing Library?”
  1. Michael BerginJul 25, 2009
  2. Johannes SchindelinJul 25, 2009
  3. Michael BerginJul 25, 2009
  4. Johannes SchindelinJul 25, 2009
  5. Michael BerginJul 26, 2009

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.