Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Nov 18, 2011
  1. @carlosmn
  2. @carlosmn

    Add test for renaming a file and adding it to the index

    carlosmn authored
    Thanks to Emeric.
  3. @carlosmn

    Don't overwrite existing objects

    carlosmn authored
    It's redundant to do this (git doesn't) and Windows doesn't allow us
    to overwrite a read-only file (which objects are).
    
    Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
  4. @vmg

    include: Unify internal include strategies

    vmg authored
    Do not add the `git2` path to internal includes, or that will cause
    an extra path dependency.
  5. @vmg

    clay: Bump to 0.9.0, add TAP support

    vmg authored
    Comes with schu's stress tests for config files. Hopefully the diffs
    will stay minimal from now on.
  6. @vmg
  7. @vmg

    Rename `git_tree_frompath` to `git_tree_get_subtree`

    vmg authored
    That makes more sense to me.
Commits on Nov 17, 2011
  1. @vmg

    Merge pull request #486 from petdance/development

    vmg authored
    Quoted the asterisk to avoid markdown highlighter confusion
Commits on Nov 16, 2011
  1. @petdance
  2. @vmg

    Merge pull request #484 from brodie/packed-refs-perms

    vmg authored
    refs: permissions-related fixes/improvements
  3. @brodie

    refs: move GIT_PACKED_REFS_FILE_MODE to refs.h as GIT_PACKEDREFS_FILE…

    brodie authored
    …_MODE
    
    This groups the #define with the other ref-related file modes, and it
    makes the name consistent with the other packed-refs definitions.
  4. @brodie

    refs: use 0666 permissions when writing packed-refs, not 0644

    brodie authored
    This matches stock Git's behavior.
  5. @vmg

    Merge pull request #482 from leto/patch-1

    vmg authored
    Fix docs about the command to mix the clay tests
  6. @leto
  7. @vmg

    threads: Fix the shared global state with TLS

    vmg authored
    See `global.c` for a description of what we're doing.
    
    When libgit2 is built with GIT_THREADS support, the threading system
    must be explicitly initialized with `git_threads_init()`.
Commits on Nov 7, 2011
  1. @vmg

    Merge pull request #475 from carlosmn/perms

    vmg authored
    Fix Windows permissions problems
  2. @carlosmn

    Write packed-refs with 0644 permissions

    carlosmn authored
    Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
  3. @carlosmn

    Reword packed-refs error messages so they're easier to track down

    carlosmn authored
    Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
  4. @carlosmn

    Implement p_rename

    carlosmn authored
    Move the callers of git_futils_mv_atomic to use p_rename.
    
    Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
  5. @vmg

    Merge pull request #473 from drafnel/bc/update-examples

    vmg authored
    bc/update examples
  6. @vmg

    Merge pull request #470 from schu/test-helpers-no-assert

    vmg authored
    test_helpers: do not rely on assert
  7. @vmg

    Merge pull request #472 from libgit2/new-references

    vmg authored
    References! References! References!
  8. @drafnel
  9. @drafnel

    examples/network/git2.c: exit with proper status, and avoid segfault

    drafnel authored
    This function should exit after printing usage information if too few
    arguments were specified.
    
    Additionally, it should exit with a failure status if the first argument
    supplied is not one in the internal command list.
  10. @drafnel
  11. @drafnel

    examples/network/fetch.c: revert overzealous conversion of free to gi…

    drafnel authored
    …t__free
    
    Since git__free is not exported (it's actually a macro), it should not be
    used in client programs.  Change this call to 'git__free' back to 'free'.
Commits on Nov 6, 2011
  1. @vmg
  2. @vmg

    refs: Partial rewrite for read-only refs

    vmg authored
    This new version of the references code is significantly faster and
    hopefully easier to read.
    
    External API stays the same. A new method `git_reference_reload()` has
    been added to force updating a memory reference from disk. In-memory
    references are no longer updated automagically -- this was killing us.
    
    If a reference is deleted externally and the user doesn't reload the
    memory object, nothing critical happens: any functions using that
    reference should fail gracefully (e.g. deletion, renaming, and so on).
    
    All generated references from the API are read only and must be free'd
    by the user. There is no reference counting and no traces of generated
    references are kept in the library.
    
    There is no longer an internal representation for references. There is
    only one reference struct `git_reference`, and symbolic/oid targets are
    stored inside an union.
    
    Packfile references are stored using an optimized struct with flex array
    for reference names. This should significantly reduce the memory cost of
    loading the packfile from disk.
  3. @schu @vmg

    git_reference_rename: cleanup reference renaming

    schu authored vmg committed
    git_reference_rename() didn't properly cleanup old references given by
    the user to not break some ugly old tests. Since references don't point
    to libgit's internal cache anymore we can cleanup git_reference_rename()
    to be somewhat less messy.
    
    Signed-off-by: schu <schu-github@schulog.org>
  4. @schu @vmg

    Free all used references in the source tree

    schu authored vmg committed
    Since references are not owned by the repository anymore we have to free
    them manually now.
    
    Signed-off-by: schu <schu-github@schulog.org>
  5. @schu @vmg

    refs: add test case checking "immutable" references

    schu authored vmg committed
    Signed-off-by: schu <schu-github@schulog.org>
  6. @schu @vmg

    refs: split internal and external references

    schu authored vmg committed
    Currently libgit2 shares pointers to its internal reference cache with
    the user. This leads to several problems like invalidation of reference
    pointers when reordering the cache or manipulation of the cache from
    user side.
    
    Give each user its own git_reference instead of leaking the internal
    representation (struct reference).
    
    Add the following new API functions:
    
    	* git_reference_free
    	* git_reference_is_packed
    
    Signed-off-by: schu <schu-github@schulog.org>
Commits on Nov 5, 2011
  1. @drafnel

    examples/general.c: update for recent API renaming of git_config_get_int

    drafnel authored
    git_config_get_int --> git_config_get_int32
Commits on Oct 30, 2011
  1. @schu

    test_helpers: do not rely on assert

    schu authored
    The functions loose_object_mode and loose_object_dir_mode call stat
    inside an assert statement which isn't evaluated when compiling in
    Release mode (NDEBUG) and leads to failing tests. Replace it.
    
    Signed-off-by: schu <schu-github@schulog.org>
Commits on Oct 29, 2011
  1. @vmg

    Merge pull request #468 from nulltoken/ntk/fix/issue-465

    vmg authored
    Status: fix segfault (#465) and order issues
Something went wrong with that request. Please try again.