1. 15 Apr, 2010 1 commit
  2. 14 Apr, 2010 4 commits
    • Add block-sha1 in favour of the mozilla routines · 5dddf7c8
      Since block-sha1 from git.git has such excellent performance, we
      can also get rid of the openssl dependency. It's rather simple
      to add it back later as an optional extra, but we really needn't
      bother to pull in the entire ssl library and have to deal with
      linking issues now that we have the portable and, performance-wise,
      truly excellent block-sha1 code to fall back on.
      
      Since this requires a slight revamp of the build rules anyway, we
      take the opportunity to fix including EXTRA_OBJS in the final build
      as well.
      
      The block-sha1 code was originally implemented for git.git by
      Linus Torvalds <torvalds@linux-foundation.org> and was later
      polished by Nicolas Pitre <nico@cam.org>.
      
      Signed-off-by: Andreas Ericsson <ae@op5.se>
      Andreas Ericsson committed
    • Add assembly sha1 implementation for ppc · d15e94c0
      We don't use it yet, but now we have it there at least.
      
      All the non-trivial parts of it appears to have been written
      and contributed to git.git by some anonymous genius. The original
      implementation was done by Paul Mackerras <paulus@samba.org>.
      
      Signed-off-by: Andreas Ericsson <ae@op5.se>
      Andreas Ericsson committed
    • Add generic buildrule for assembly files · a7335c51
      Signed-off-by: Andreas Ericsson <ae@op5.se>
      Andreas Ericsson committed
    • Make 'make clean' wipe all object files in src/*/ · 9b173803
      Instead of naming the subdirectories explicitly (which will result in
      us forgetting about one sooner or later), we change the shell glob
      pattern to wipe all object files from all subdirectories under src/.
      
      Signed-off-by: Andreas Ericsson <ae@op5.se>
      Andreas Ericsson committed
  3. 01 Feb, 2010 1 commit
  4. 20 Jan, 2010 12 commits
  5. 13 Oct, 2009 6 commits
    • Add the git_oid_to_string() utility function · 960ca1d7
      Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
      Ramsay Jones committed
    • Add test-suite coverage testing using gcov · e4553584
      Add a new "coverage" Makefile target that re-builds the
      library and tests using the gcc compiler/linker flags
      required by gcov, runs the test suite to capture the
      runtime data, then compiles a coverage report.
      
      The report, which is saved in a file named "untested",
      consists of a list of untested files, followed by a list
      of untested functions. More detailed execution statistics
      are given in the gcov log files which are saved in the
      top-level directory (named like src#hash.c.gcov).
      
      Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
      Ramsay Jones committed
    • t0101-oid.c: Fix a memory leak reported by valgrind · d2ef83fc
      Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
      Ramsay Jones committed
    • Add support for running the tests via valgrind · cac5d927
      Add some makefile targets, which use valgrind's memcheck tool to
      run the tests, in order to help diagnose memory problems in the
      library.
      
      In addition, we enable the '--leak-check' option to report on any
      memory leaks. However, unlike the other memory problems reported
      by memcheck, memory leak reports do not result in an error exit
      from valgrind. (So memory leaks are reported on stderr, but don't
      halt the test run.)
      
      A suppressions file (tests.supp) is included since libz triggers
      some false positives.
      
      Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
      Ramsay Jones committed
    • win32: Define the ssize_t type using SSIZE_T if supported · 04e88240
      Some win32 compilers define the SSIZE_T type, with the same
      meaning and intent as ssize_t. If available, make ssize_t a
      synonym of SSIZE_T.
      
      At present, the Digital-Mars compiler is known not to define
      SSIZE_T, so we provide an SSIZE_T macro to use in the typedef.
      
      Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
      Ramsay Jones committed
    • Disable some msvc "deprecated function" warnings again · 5cae6c25
      In addition to removing the inline #define, commit 209849a4 also
      removed a #pragma to disable msvc deprecated function warnings.
      Without this #pragma, msvc currently issues 19 warnings related
      to "deprecated insecure c-library functions", such as strcpy()
      and 22 warnings related to "deprecated POSIX function names",
      such as open().
      
      In order to supress these warnings, re-instate the #pragma.
      
      Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
      Ramsay Jones committed
  6. 16 Jun, 2009 2 commits
  7. 15 Jun, 2009 3 commits
    • win32: Add an fsync() implementation for windows · c79dded3
      For information on FlushFileBuffers(), see the msdn document
      at msdn.microsoft.com/en-us/library/aa364439(VS.85).aspx
      
      Note that Windows 2000 is shown as the minimum windows version
      to support FlushFileBuffers(), so if we wish to support Win9X
      and NT4, we will need to add code to dynamically check if
      kernel32.dll contains the function.
      
      The only error return mentioned in the msdn document is
      ERROR_INVALID_HANDLE, which is returned if the file/device
      (eg console) is not buffered. The fsync(2) manpage says that
      EINVAL is returned in errno, if "fd is bound to a special
      file which does not support synchronization".
      
      Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
      Ramsay Jones committed
    • win32: Add support for the MS Visual C/C++ compiler · 8a086f87
      Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
      Ramsay Jones committed
    • Correct the spelling of the FLEX_ARRAY macro · 2bf93fa1
      When setting the default value, the macro name was specified
      as GIT_FLEX_ARRAY, which is inconsistent with it's earlier
      usage in the file. This caused a compilation error, using the
      MS Visual C/C++ compiler, when compiling the git_packlist
      struct definition in src/odb.c.
      
      In addition to changing the spelling of the FLEX_ARRAY macro
      to GIT_FLEX_ARRAY, including it's use in src/odb.c, we also
      rename the TYPEOF macro to GIT_TYPEOF.
      
      Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
      Ramsay Jones committed
  8. 05 Jun, 2009 11 commits