Skip to content
Commits on Nov 18, 2011
  1. @carlosmn
  2. @carlosmn

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

    Thanks to Emeric.
    carlosmn committed Nov 18, 2011
  3. @carlosmn

    Don't overwrite existing objects

    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>
    carlosmn committed Nov 17, 2011
  4. @vmg

    include: Unify internal include strategies

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

    clay: Bump to 0.9.0, add TAP support

    Comes with schu's stress tests for config files. Hopefully the diffs
    will stay minimal from now on.
    vmg committed Nov 17, 2011
  6. @vmg

    tree: Add payload to `git_tree_walk`

    vmg committed Nov 17, 2011
  7. @vmg

    Rename `git_tree_frompath` to `git_tree_get_subtree`

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

    Merge pull request #486 from petdance/development

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

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

    refs: permissions-related fixes/improvements
    vmg committed Nov 16, 2011
  3. @brodie

    refs: move GIT_PACKED_REFS_FILE_MODE to refs.h as GIT_PACKEDREFS_FILE…

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

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

    This matches stock Git's behavior.
    brodie committed Nov 16, 2011
  5. @vmg

    Merge pull request #482 from leto/patch-1

    Fix docs about the command to mix the clay tests
    vmg committed Nov 16, 2011
  6. @leto
  7. @vmg

    threads: Fix the shared global state with TLS

    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()`.
    vmg committed Nov 16, 2011
Commits on Nov 7, 2011
  1. @vmg

    Merge pull request #475 from carlosmn/perms

    Fix Windows permissions problems
    vmg committed Nov 7, 2011
  2. @carlosmn

    Write packed-refs with 0644 permissions

    Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
    carlosmn committed Nov 7, 2011
  3. @carlosmn

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

    Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
    carlosmn committed Nov 7, 2011
  4. @carlosmn

    Implement p_rename

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

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

    bc/update examples
    vmg committed Nov 7, 2011
  6. @vmg

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

    test_helpers: do not rely on assert
    vmg committed Nov 7, 2011
  7. @vmg

    Merge pull request #472 from libgit2/new-references

    References! References! References!
    vmg committed Nov 7, 2011
  8. @drafnel
  9. @drafnel

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

    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.
    drafnel committed Nov 6, 2011
  10. @drafnel
  11. @drafnel

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

    …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'.
    drafnel committed Nov 6, 2011
Commits on Nov 6, 2011
  1. @vmg
  2. @vmg

    refs: Partial rewrite for read-only refs

    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.
    vmg committed Oct 30, 2011
  3. @vmg

    git_reference_rename: cleanup reference renaming

    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>
    schu committed with vmg Aug 13, 2011
  4. @vmg

    Free all used references in the source tree

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

    refs: add test case checking "immutable" references

    Signed-off-by: schu <schu-github@schulog.org>
    schu committed with vmg Jul 26, 2011
  6. @vmg

    refs: split internal and external references

    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>
    schu committed with vmg Aug 10, 2011
Commits on Nov 5, 2011
  1. @drafnel

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

    git_config_get_int --> git_config_get_int32
    drafnel committed Nov 5, 2011
Commits on Oct 30, 2011
  1. test_helpers: do not rely on assert

    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>
    schu committed Oct 30, 2011
Commits on Oct 29, 2011
  1. @vmg

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

    Status: fix segfault (#465) and order issues
    vmg committed Oct 29, 2011
Something went wrong with that request. Please try again.