Re: [PATCH v6 3/3] bisect--helper: `write_terms` shell function in C
- From
Christian Couder <christian.couder@gmail.com>
- Date
- May 23, 2016, 13:58 UTC
- Message-ID
- <CAP8UFD1gjfFC_v23RDiHedzwQm3XoYJKv32GT7R9GNyK4pXJpQ@mail.gmail.com>
- In-Reply-To
- <alpine.DEB.2.20.1605231301560.4122@virtualbox>
On Mon, May 23, 2016 at 1:07 PM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 9 quoted lines
> > On Fri, 20 May 2016, Pranit Bauva wrote: > >> Frankly, I have no idea what you mean by libification but I will use >> error() since efforts for libification have already started. > > The term "libification" is frequently used in the Git project: it means to > convert code that was formerly used in a standalone program to make it > usable as a library function.
Yeah, and Git standalone programs in C are builtin/*.c files, while Git lib code in C is in *.{c,h} files at the root of the repo.
The build also generates libgit.a from all the lib code, for example:
$ touch bisect.c
$ make CFLAGS="-g3 -Wall"
CC bisect.o
AR libgit.a
...