1. 21 Sep, 2019 1 commit
  2. 01 Aug, 2019 1 commit
    • errors: introduce `git_error_vset` function · c8e63812
      Right now, we only provide a `git_error_set` that has a variadic
      function signature. It's impossible to drive this function in a
      C89-compliant way from other functions that have a variadic
      signature, though, like for example `git_parse_error`.
      
      Implement a new `git_error_vset` function that gets a `va_list`
      as parameter, fixing the above problem.
      Patrick Steinhardt committed
  3. 19 May, 2019 1 commit
  4. 22 Dec, 2010 1 commit
    • Remove git_errno · 9f54fe48
      It was not being used by any methods (only by malloc and calloc), and
      since it needs to be TLS, it cannot be exported on DLLs on Windows.
      
      Burn it with fire. The API always returns error codes!
      
      Signed-off-by: Vicent Marti <tanoku@gmail.com>
      Vicent Marti committed
  5. 06 Dec, 2010 1 commit
  6. 31 Dec, 2008 4 commits
  7. 02 Dec, 2008 1 commit
    • Remove config.h and make fileops an internal API · ec250c6e
      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>
      Andreas Ericsson committed
  8. 22 Nov, 2008 1 commit
    • Add an embryo of a TLS-aware error handling system · ae234862
      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>
      Andreas Ericsson committed