1. 22 Nov, 2008 3 commits
    • Add a 'sparse' make target · 3e1d42b7
      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>
      Andreas Ericsson committed
    • s/COPYING/.HEADER/ for install-headers target · ff7c7576
      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>
      Andreas Ericsson committed
    • Get rid of GIT__PRIVATE macro · 4f0adcd0
      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>
      Andreas Ericsson committed
  2. 18 Nov, 2008 7 commits
    • Add compiler/platform agnostic thread-local storage · 36f0f61f
      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>
      Andreas Ericsson committed
    • Add a fake and phony install-headers target · a57e9a8c
      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>
      Andreas Ericsson committed
    • Move public headers to src/git · d4043ee9
      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>
      Andreas Ericsson committed
    • s/git_revp/git_revpool/ · 1b9e92c7
      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>
      Andreas Ericsson committed
    • Rename "git_sobj" "git_obj" · dff79e27
      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>
      Andreas Ericsson committed
    • Use same-directory include for public headers · 257bd746
      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>
      Andreas Ericsson committed
    • List git.git authors consenting to relicense their code · eb160e94
      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>
      Andreas Ericsson committed
  3. 04 Nov, 2008 12 commits
  4. 02 Nov, 2008 1 commit
  5. 01 Nov, 2008 7 commits
  6. 31 Oct, 2008 10 commits