1. 05 Feb, 2011 1 commit
  2. 03 Feb, 2011 1 commit
    • Use Git's own tree entry sorting algorithm · 35786cb7
      If plain strcmp is used, as this code did before, the final sorting may
      end up different from what git-add would do (for example, 'boost'
      appearing before 'boost-build.jam', because Git sorts as if it were
      spelled 'boost/').
      
      If the sorting is incorrect like this, Git 1.7.4 insists that unmodified
      files have been modified.  For example, my test repository has these
      four entries:
      
      drwxr-xr-x  199 johnw  wheel   6766 Feb  2 17:21 boost
      -rw-r--r--    1 johnw  wheel    849 Feb  2 17:22 boost-build.jam
      -rw-r--r--    1 johnw  wheel    989 Feb  2 17:21 boost.css
      -rw-r--r--    1 johnw  wheel   6308 Feb  2 17:21 boost.png
      
      Here is the output from git-ls-tree for these files, in a commit tree
      created using git-add and git-commit:
      
      100644 blob 8b8775433aef73e9e12609610ae2e35cf1e7ec2c    boost-build.jam
      100644 blob 986c4050fa96d825a1311c8e871cdcc9a3e0d2c3    boost.css
      100644 blob b4d51fcd5c9149fd77f5ca6ed2b6b1b70e8fe24f    boost.png
      040000 tree 46537eeaa4d577010f19b1c9e940cae9a670ff5c    boost
      
      Here is the output for the same commit produced using libgit2:
      
      040000 tree c27c0fd1436f28a6ba99acd0a6c17d178ed58288	boost
      100644 blob 8b8775433aef73e9e12609610ae2e35cf1e7ec2c	boost-build.jam
      100644 blob 986c4050fa96d825a1311c8e871cdcc9a3e0d2c3	boost.css
      100644 blob b4d51fcd5c9149fd77f5ca6ed2b6b1b70e8fe24f	boost.png
      
      Due to this reordering, git-status claims the three blobs are always
      modified, no matter what I do using git-read-tree or git-reset or
      git-checkout to update the index.
      John Wiegley committed
  3. 02 Feb, 2011 5 commits
  4. 01 Feb, 2011 5 commits
  5. 30 Jan, 2011 1 commit
    • Refactor reference parsing code · 2f8a8ab2
      Several changes have been committed to allow the user to create
      in-memory references and write back to disk. Peeling of symbolic
      references has been made explicit. Added getter and setter methods for
      all attributes on a reference. Added corresponding documentation.
      
      Signed-off-by: Vicent Marti <tanoku@gmail.com>
      Vicent Marti committed
  6. 29 Jan, 2011 9 commits
  7. 20 Jan, 2011 5 commits
  8. 13 Jan, 2011 2 commits
  9. 11 Jan, 2011 4 commits
  10. 10 Jan, 2011 2 commits
  11. 08 Jan, 2011 5 commits
    • Fixed two buffer handling errors in vector.c · a17777d1
      - remove() would read one-past array bounds.
      - resize() would fail if the initial size was 1, because it multiplied by 1.75
        and truncated the resulting value. The buffer would always remain at size 1,
        but elements would repeatedly be appended (via insert()) causing a crash.
      Alex Budovski committed
    • Revised build configuration for MSVC. · 9ace34c8
      Major changes and rationale:
      - /WX: absolutely vital when compiling in C-mode as the compiler is
        incredibly lenient on what is allowed to compile. It allows functions to be
        called without prototypes declared, treating them as functions returning int
        taking an unspecified (read: unrestricted) list of arguments, without any
        type checking! It will simply issue a warning, which is easily overlooked.
      
        A real example: it will allow you to call ceil(1.75) without first including
        <math.h> causing UB, returning bogus results like 1023 on the machine I
        tested on.
      
      - Release build separate from debug.
        Presently release builds don't exist.  Consequently they are completely
        untested. Many bugs may only manifest themselves in release mode. The current
        configuration sets debug-only flags like /RTC1 which are incompatible with
        optimization (/O2).
      
        In addition, the Windows build of libgit2 has no optimized version. This
        change resolves this.
      
      - Added checksum generation in image headers. This is so debuggers don't
        complain about checksum mismatches and provides a small amount of consistency
        to binaries.
      Alex Budovski committed
    • Add Delphi bindings to the readme · 6f9024a7
      Signed-off-by: Vicent Marti <tanoku@gmail.com>
      Vicent Marti committed