]> git.proxmox.com Git - libgit2.git/log
libgit2.git
15 years agoDiasble TLS on cygwin
Ramsay Jones [Sat, 29 Nov 2008 19:21:24 +0000 (19:21 +0000)]
Diasble TLS on cygwin

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Acked-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoUse __CHECKER__ to detect when sparse is running
Ramsay Jones [Sat, 29 Nov 2008 19:20:07 +0000 (19:20 +0000)]
Use __CHECKER__ to detect when sparse is running

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Acked-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoUse cgcc in the sparse target
Ramsay Jones [Sat, 29 Nov 2008 19:19:31 +0000 (19:19 +0000)]
Use cgcc in the sparse target

cgcc is the recommended way to run sparse, since it provides
many -Defines suitable to the given gcc platform. For example,
on some Ubuntu/glibc versions, a plain sparse invocation gives
the following warning:

    "warning: This machine appears to be neither x86_64 nor i386."

Using "cgcc -no-compile" instead eliminates this warning.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Acked-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoFixup documentation to reflect the "git_obj" rename
Ramsay Jones [Sat, 29 Nov 2008 19:18:43 +0000 (19:18 +0000)]
Fixup documentation to reflect the "git_obj" rename

commit dff79e27d3d2cdc09790ded80fe2ea8ff5d61034 renamed
the (small object) "git_sobj" to a plain "git_obj", but
neglected to update some of the documentation to reflect
that change.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd a dirent walker to the fileops API
Andreas Ericsson [Sat, 29 Nov 2008 14:34:20 +0000 (15:34 +0100)]
Add a dirent walker to the fileops API

Since at least MS have something like GetFirstDirEnt() and
GetNextDirEnt() (presumably with superior performance), we
can let MS hackers add support for a dirent walker using
that API instead, while we stick with the posix-style
readdir() calls.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd an io caching layer to the gitfo api
Andreas Ericsson [Sat, 29 Nov 2008 14:28:12 +0000 (15:28 +0100)]
Add an io caching layer to the gitfo api

The idea is taken from Junio's work in read-cache.c, where
it's used for writing out the index without tap-dancing on
the poor harddrive. Since it's almost certainly useful for
cached writing of packfiles too, we turn it into a generic
API, making it perfectly simple to reuse it later.

gitfo_write_cached() has the same contract as gitfo_write(), it
returns GIT_SUCCESS if all bytes are successfully written (or were
at least buffered for later writing), and <0 if an error occurs
during buffer writing.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoRemove config.h and make fileops an internal API
Andreas Ericsson [Sun, 23 Nov 2008 21:37:55 +0000 (22:37 +0100)]
Remove config.h and make fileops an internal API

Since it doesn't make sense to make the disk access stuff
portable *AND* public (that's a job for each application
imo), we can take a shortcut and just support unixy stuff
for now and get away with coding most of it as macros.

Since we go with an internal API for starters and only
provide higher-level API's to the libgit users, we'll be
ok with this approach.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agodoxygen config: Update path to public headers
Andreas Ericsson [Thu, 27 Nov 2008 08:26:52 +0000 (09:26 +0100)]
doxygen config: Update path to public headers

In d4043ee9d97031e94f205110996d2381dd26c540, public headers
were moved from include/git to src/git, but the doxygen
configuration wasn't updated to reflect this. This patch
amends that slippage, making documentation generation once
again work as intended.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd a new author state "ign" to git.git-authors
Andreas Ericsson [Sat, 22 Nov 2008 13:04:25 +0000 (14:04 +0100)]
Add a new author state "ign" to git.git-authors

This is to be used for application code that currently
resides in git, but only for authors whose only not
insignificant contributions are for that code (such as
"imap-send").

Presently, this is used for Mike McCormack and Robert
Shearman.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd Kristian Høgsberg to the list of consenting authors
Andreas Ericsson [Tue, 25 Nov 2008 15:28:51 +0000 (16:28 +0100)]
Add Kristian Høgsberg to the list of consenting authors

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd Adam Simpkins as ??? to git.git-authors
Andreas Ericsson [Sat, 22 Nov 2008 13:03:06 +0000 (14:03 +0100)]
Add Adam Simpkins as ??? to git.git-authors

Adam has made significant contributions to the http
transport code, but his listed email address is no longer
valid.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd René Scharfe to git.git-authors
Andreas Ericsson [Sat, 22 Nov 2008 13:02:07 +0000 (14:02 +0100)]
Add René Scharfe to git.git-authors

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd Matthieu Moy and Steffen Prohaska to git.git-authors
Andreas Ericsson [Fri, 21 Nov 2008 08:26:57 +0000 (09:26 +0100)]
Add Matthieu Moy and Steffen Prohaska to git.git-authors

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd Sven Verdoolaege to git.git-authors
Andreas Ericsson [Thu, 20 Nov 2008 15:25:41 +0000 (16:25 +0100)]
Add Sven Verdoolaege to git.git-authors

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoMake using CFLAGS a bit simpler
Andreas Ericsson [Sat, 22 Nov 2008 14:35:31 +0000 (15:35 +0100)]
Make using CFLAGS a bit simpler

This patch introduces the $(ALL_CFLAGS) variable, which holds
$(BASIC_CFLAGS) as well as userdefined $(CFLAGS) and then
consistently uses that variable where both were used anyway.

Since we're in the area, we optimize the sparse running a
bit, getting rid of the shell and just letting sparse iterate
over the files.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd $(CONFIG_H) as a build-dependency for sparse
Andreas Ericsson [Sat, 22 Nov 2008 14:33:15 +0000 (15:33 +0100)]
Add $(CONFIG_H) as a build-dependency for sparse

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoMake src/git/config.h a macro in Makefile
Andreas Ericsson [Sat, 22 Nov 2008 14:25:59 +0000 (15:25 +0100)]
Make src/git/config.h a macro in Makefile

This makes it far more convenient to reference as a dependency
for other targets.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoRemove license top-comment from public header files
Andreas Ericsson [Sat, 22 Nov 2008 14:17:17 +0000 (15:17 +0100)]
Remove license top-comment from public header files

Since it's being added when we install the headers anyway,
we might as well get rid of it. If anything, we should point
coders to the COPYING file in the project's root directory
instead of duplicating the same (large-ish) text everywhere.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd an embryo of a TLS-aware error handling system
Andreas Ericsson [Tue, 18 Nov 2008 21:20:15 +0000 (22:20 +0100)]
Add an embryo of a TLS-aware error handling system

This adds the per-thread global variable git_errno to the
system, which callers can examine to get information about
an error.

Two helper functions are added to reduce LoC-count for the
library code itself.

Also, some exceptions are made for running sparse on GIT_TLS
definitions, since it doesn't grok thread-local variables at
all.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd util.h - utility macros
Andreas Ericsson [Sat, 22 Nov 2008 13:44:47 +0000 (14:44 +0100)]
Add util.h - utility macros

ARRAY_SIZE() et al go in util.h, included from common.h

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd internal common.h file
Andreas Ericsson [Sat, 22 Nov 2008 13:42:12 +0000 (14:42 +0100)]
Add internal common.h file

This one pulls in compiler compatibility macros, some
common header files, and also the public common.h header.

C source files are modified to use the private common.h
in favour of the public one.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd cc-compat.h - C compiler compat macros for internal use
Andreas Ericsson [Sat, 22 Nov 2008 13:40:51 +0000 (14:40 +0100)]
Add cc-compat.h - C compiler compat macros for internal use

Holds things such as FLEX_ARRAY and whatnot.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoRename git_revpool_* functions gitrp_*
Andreas Ericsson [Sat, 22 Nov 2008 13:57:40 +0000 (14:57 +0100)]
Rename git_revpool_* functions gitrp_*

Otherwise their prototypes don't match their declarations.

Detected by 'sparse', which is obviously good to run
before each commit.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd a 'sparse' make target
Andreas Ericsson [Tue, 18 Nov 2008 21:17:40 +0000 (22:17 +0100)]
Add a 'sparse' make target

Given the confusion on git@vger, we'd better not name
this target "check" or (worse) "test", but it's still
useful to have. As "sparse", noone should have problems
understanding what it does.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agos/COPYING/.HEADER/ for install-headers target
Andreas Ericsson [Sat, 22 Nov 2008 12:05:32 +0000 (13:05 +0100)]
s/COPYING/.HEADER/ for install-headers target

We don't want to prepend the entire license; Only the
file header part of it.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoGet rid of GIT__PRIVATE macro
Andreas Ericsson [Tue, 18 Nov 2008 20:28:55 +0000 (21:28 +0100)]
Get rid of GIT__PRIVATE macro

Using it in the first place means something's wrong.
This patch replaces it with an internal header which
carries the previously "protected" code instead.

Internal source-files simply include "commit.h" and
they're done. The internal header includes the public
one to make sure we always use the proper prototype.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd compiler/platform agnostic thread-local storage
Andreas Ericsson [Tue, 18 Nov 2008 18:06:25 +0000 (19:06 +0100)]
Add compiler/platform agnostic thread-local storage

It doesn't cover all cases, but we can work on those as
we go along. For now, gcc, MSVC++, Intel C/C++, IBM XL C/C++,
Sun Studio C/C++ and Borland C++ Builder are the supported
compilers (although we boldly assume that they all are of
a recent enough version to support thread-local storage).

This is intended to be used in upcoming patches that implement
graceful (but TLS-dependant) error-handling in the library.

As an added bonus, we also bring the online_cpus() function
from git.git to detect the number of usable cpu's.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd a fake and phony install-headers target
Andreas Ericsson [Tue, 18 Nov 2008 00:27:29 +0000 (01:27 +0100)]
Add a fake and phony install-headers target

It actually does what it's supposed to (more or less),
but not very portably and not to the correct directory.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoMove public headers to src/git
Andreas Ericsson [Tue, 18 Nov 2008 00:18:52 +0000 (01:18 +0100)]
Move public headers to src/git

It's arguably smoother to keep them close to the source,
as that's where one's working when modifying them. More
importantly, though, is the ability to use private headers
in the src/ dir that simply include "git/$samename.h" to
get to the public API at the same time.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agos/git_revp/git_revpool/
Andreas Ericsson [Tue, 18 Nov 2008 00:02:27 +0000 (01:02 +0100)]
s/git_revp/git_revpool/

git_revp is something I personally can't stop pronouncing
"rev pointer". I'm sure others would suffer the same
problem.

Also, rename the git_revp_ sub-api "gitrp_". This is the
first of many such renames, primarily done to prevent
extreme inflation in the "git_" namespace, which we'd like
to reserve for a higher-level API.

While we're at it, we remove the noise-char "c" from a lot
of functions. Since revision walking is all about commits,
the common case should be that we're dealing with commits.
Exceptions can get a more mnemonic description as needed.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoRename "git_sobj" "git_obj"
Andreas Ericsson [Mon, 17 Nov 2008 23:59:36 +0000 (00:59 +0100)]
Rename "git_sobj" "git_obj"

The 's' never really made sense, since it's not a "small"
object at all, but rather a plain object. As such, it should
have a "plain" object name.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoUse same-directory include for public headers
Andreas Ericsson [Mon, 17 Nov 2008 23:58:02 +0000 (00:58 +0100)]
Use same-directory include for public headers

It doesn't make sense to use "git/somefile.h" in the
public git headers, as it's quite likely that projects
using them will have a git directory themselves. This
alters it, making the public headers look for headers
in the same directory they themselves are in.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoList git.git authors consenting to relicense their code
Andreas Ericsson [Mon, 17 Nov 2008 22:15:30 +0000 (23:15 +0100)]
List git.git authors consenting to relicense their code

Since re-using code from git.git proper is the quick way
forward, we need to list those who have given their consent
to do just that. The relicense permission is only valid for
use with libgit2, and only for GPLv2 + gcc-exception (as
specified by 'COPYING'.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd a zlib support shell
Shawn O. Pearce [Tue, 4 Nov 2008 02:53:09 +0000 (18:53 -0800)]
Add a zlib support shell

Some versions of zlib don't have a deflateBound defined, so
we define it ourselves after including zlib.h.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoImplement some of the basic git_odb open and close API
Shawn O. Pearce [Tue, 4 Nov 2008 02:39:37 +0000 (18:39 -0800)]
Implement some of the basic git_odb open and close API

Far from being complete, but its a good start.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd git_fsize to the os file API
Shawn O. Pearce [Tue, 4 Nov 2008 02:38:57 +0000 (18:38 -0800)]
Add git_fsize to the os file API

This permits us to get the size of an opened file.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoRedefine git_fread, git_fwrite to transfer the whole unit
Shawn O. Pearce [Tue, 4 Nov 2008 01:14:25 +0000 (17:14 -0800)]
Redefine git_fread, git_fwrite to transfer the whole unit

We never want to accept a short read or a short write when
transferring data to or from a local file.

Either the entire read (or write) completes or the operation
failed and we will not recover gracefully from it.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd git_oid_cpy, git_oid_cmp as inline functions
Shawn O. Pearce [Tue, 4 Nov 2008 01:31:16 +0000 (17:31 -0800)]
Add git_oid_cpy, git_oid_cmp as inline functions

These are easily built off the standard C library functions memcpy
and memcmp.  By marking these inline we stand a good chance of
the C compiler replacing the entire thing with tight machine code,
because many compilers will actually inline a memcmp or memcpy when
the 3rd argument (the size) is a constant value.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd an extra oid test to verify control characters aren't read
Shawn O. Pearce [Tue, 4 Nov 2008 02:19:02 +0000 (18:19 -0800)]
Add an extra oid test to verify control characters aren't read

We only want hex digits to be read, any other character in the 8-bit
character set is invalid within an id string.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoChange test_main to run a single test case out of the suite
Shawn O. Pearce [Tue, 4 Nov 2008 02:38:12 +0000 (18:38 -0800)]
Change test_main to run a single test case out of the suite

By passing the name of the test function on the command line
we execute exactly that one test, and then exit successfully
if the test did not fail.  This permits multiple functions in
the same .c file, so they could be called from a shell script
or debugged independently externally.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoFix Makefile to correctly handle 'make -j4 test'
Shawn O. Pearce [Tue, 4 Nov 2008 01:00:54 +0000 (17:00 -0800)]
Fix Makefile to correctly handle 'make -j4 test'

If we have more than one test build running we cannot use the same
file for each test case; instead we need to use a per-test path so
there aren't any collisions.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoFix GIT_EXTERN to actually mark the prototype as extern
Shawn O. Pearce [Tue, 4 Nov 2008 00:29:03 +0000 (16:29 -0800)]
Fix GIT_EXTERN to actually mark the prototype as extern

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoMove GIT_NORETURN into test_lib.h only
Shawn O. Pearce [Tue, 4 Nov 2008 00:29:56 +0000 (16:29 -0800)]
Move GIT_NORETURN into test_lib.h only

We should never have a noreturn style function in the library
itself, as such a function would prevent the calling application
from handling error conditions the way it wants.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoEnable warnings by default and fix warning in oid.c
Shawn O. Pearce [Tue, 4 Nov 2008 02:00:49 +0000 (18:00 -0800)]
Enable warnings by default and fix warning in oid.c

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoCorrect indentation in git/odb.h
Shawn O. Pearce [Tue, 4 Nov 2008 01:52:59 +0000 (17:52 -0800)]
Correct indentation in git/odb.h

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoCreate a basic test suite for the library and test oid functions
Shawn O. Pearce [Sun, 2 Nov 2008 01:14:22 +0000 (18:14 -0700)]
Create a basic test suite for the library and test oid functions

This is a horribly simple test suite that makes it fairly easy to
put together some basic function level unit tests on the library.
Its patterned somewhat after the test suite in git.git, but also
after the "Check" test library.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoCreate a micro abstraction around the POSIX file APIs
Shawn O. Pearce [Sat, 1 Nov 2008 23:53:06 +0000 (16:53 -0700)]
Create a micro abstraction around the POSIX file APIs

This way we can start to write IO code to read and write files in the
Git object database, but provide a hook to inject native Win32 APIs
instead so libgit2 can be ported to run natively on that platform.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoSwitch the license from BSD to GPL+libgcc exception
Shawn O. Pearce [Sat, 1 Nov 2008 22:55:01 +0000 (15:55 -0700)]
Switch the license from BSD to GPL+libgcc exception

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoMove include files to include/git/, drop git_ prefix from file names
Shawn O. Pearce [Sat, 1 Nov 2008 22:42:23 +0000 (15:42 -0700)]
Move include files to include/git/, drop git_ prefix from file names

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoScratch the git_revp_attr configuration of a git_revp
Shawn O. Pearce [Sat, 1 Nov 2008 01:34:02 +0000 (18:34 -0700)]
Scratch the git_revp_attr configuration of a git_revp

This isn't the best idea I've head.  Pierre Habouzit was suggesting
a technique of assigning a unique integer to each commit and then
allocating storage out of auxiliary pools, using the commit's unique
integer to index into any auxiliary pool in constant time.  This way
both applications and the library can efficiently attach arbitrary
data onto a commit, such as rewritten parents, or flags, and have
them disconnected from the main object hash table.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoDocument the return NULL style of calling convention
Shawn O. Pearce [Sat, 1 Nov 2008 01:30:22 +0000 (18:30 -0700)]
Document the return NULL style of calling convention

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoDrop the _t suffix as it is a POSIX reserved namespace
Shawn O. Pearce [Sat, 1 Nov 2008 01:23:01 +0000 (18:23 -0700)]
Drop the _t suffix as it is a POSIX reserved namespace

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoReplace git_result_t with int
Shawn O. Pearce [Sat, 1 Nov 2008 01:16:26 +0000 (18:16 -0700)]
Replace git_result_t with int

This seems to be preferred on the mailing list.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoHide non-exported symbols when linking the library
Pierre Habouzit [Fri, 31 Oct 2008 22:10:51 +0000 (15:10 -0700)]
Hide non-exported symbols when linking the library

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoTake the first stab at defining revision traversal
Shawn O. Pearce [Fri, 31 Oct 2008 19:30:28 +0000 (12:30 -0700)]
Take the first stab at defining revision traversal

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoNote that comments should be doxygen javadoc style
Shawn O. Pearce [Fri, 31 Oct 2008 19:30:04 +0000 (12:30 -0700)]
Note that comments should be doxygen javadoc style

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoFix Makefile targets to correctly depend on *.h files
Shawn O. Pearce [Fri, 31 Oct 2008 19:28:49 +0000 (12:28 -0700)]
Fix Makefile targets to correctly depend on *.h files

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoCorrect group name of the git_odb module
Shawn O. Pearce [Fri, 31 Oct 2008 18:46:51 +0000 (11:46 -0700)]
Correct group name of the git_odb module

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoUse wildcard to avoid listing out all source files by hand
Shawn O. Pearce [Fri, 31 Oct 2008 18:44:00 +0000 (11:44 -0700)]
Use wildcard to avoid listing out all source files by hand

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoBegin a description of our naming and coding conventions
Shawn O. Pearce [Fri, 31 Oct 2008 18:37:58 +0000 (11:37 -0700)]
Begin a description of our naming and coding conventions

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd _t suffix to all data types
Shawn O. Pearce [Fri, 31 Oct 2008 18:04:48 +0000 (11:04 -0700)]
Add _t suffix to all data types

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd a GIT_ prefix to OBJ_ constants to scope them better
Shawn O. Pearce [Fri, 31 Oct 2008 18:01:28 +0000 (11:01 -0700)]
Add a GIT_ prefix to OBJ_ constants to scope them better

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoHide git_odb's internal structure from applcation code
Shawn O. Pearce [Fri, 31 Oct 2008 17:57:04 +0000 (10:57 -0700)]
Hide git_odb's internal structure from applcation code

This way only structures we ask the caller to allocate on their
call stack or which we want to allow them to use members from
are shown in the API docs.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoAdd a git_sobj_close to release the git_sobj data
Shawn O. Pearce [Fri, 31 Oct 2008 17:56:18 +0000 (10:56 -0700)]
Add a git_sobj_close to release the git_sobj data

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoCleanup git_odb documentation formatting
Shawn O. Pearce [Fri, 31 Oct 2008 17:55:58 +0000 (10:55 -0700)]
Cleanup git_odb documentation formatting

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoHide GIT_{BEGIN,END}_DECL from doxygen as its not part of our API
Shawn O. Pearce [Fri, 31 Oct 2008 17:55:12 +0000 (10:55 -0700)]
Hide GIT_{BEGIN,END}_DECL from doxygen as its not part of our API

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoRename git_odb_sread to just git_odb_read
Shawn O. Pearce [Fri, 31 Oct 2008 17:43:20 +0000 (10:43 -0700)]
Rename git_odb_sread to just git_odb_read

Most read calls will use the small object format, as the
majority of the content within the database is very small
objects (under 20 KB when inflated).

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoMark git_oid parameters const when they shouldn't be modified
Shawn O. Pearce [Fri, 31 Oct 2008 17:42:32 +0000 (10:42 -0700)]
Mark git_oid parameters const when they shouldn't be modified

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
15 years agoInitial draft of libgit2
Shawn O. Pearce [Fri, 31 Oct 2008 16:57:29 +0000 (09:57 -0700)]
Initial draft of libgit2

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>