1. 27 Dec, 2015 3 commits
  2. 20 Nov, 2015 1 commit
  3. 18 Sep, 2015 1 commit
  4. 17 Sep, 2015 1 commit
    • git_futils_mkdir_*: make a relative-to-base mkdir · ac2fba0e
      Untangle git_futils_mkdir from git_futils_mkdir_ext - the latter
      assumes that we own everything beneath the base, as if it were
      being called with a base of the repository or working directory,
      and is tailored towards checkout and ensuring that there is no
      bogosity beneath the base that must be cleaned up.
      
      This is (at best) slow and (at worst) unsafe in the larger context
      of a filesystem where we do not own things and cannot do things like
      unlink symlinks that are in our way.
      Edward Thomson committed
  5. 31 Aug, 2015 3 commits
  6. 30 Aug, 2015 2 commits
  7. 28 Aug, 2015 3 commits
  8. 27 Jul, 2015 1 commit
  9. 02 Jul, 2015 1 commit
  10. 24 Jun, 2015 1 commit
  11. 23 Jun, 2015 1 commit
    • repository: check the format version · 16c73d38
      This is something we do on re-init but not when opening a
      repository. This hasn't particularly mattered up to now as the version
      has been 0 ever since the first release of git, but the times, they're
      a-changing and we will soon see version 1 in the wild. We need to make
      sure we don't open those.
      Carlos Martín Nieto committed
  12. 16 Mar, 2015 1 commit
  13. 10 Mar, 2015 1 commit
  14. 03 Mar, 2015 3 commits
    • config: borrow refcounted references · 9a97f49e
      This changes the get_entry() method to return a refcounted version of
      the config entry, which you have to free when you're done.
      
      This allows us to avoid freeing the memory in which the entry is stored
      on a refresh, which may happen at any time for a live config.
      
      For this reason, get_string() has been forbidden on live configs and a
      new function get_string_buf() has been added, which stores the string in
      a git_buf which the user then owns.
      
      The functions which parse the string value takea advantage of the
      borrowing to parse safely and then release the entry.
      Carlos Martín Nieto committed
    • repository: remove log message override for switching the active branch · 4e498646
      We want to use the "checkout: moving from ..." message in order to let
      git know when a change of branch has happened. Make the convenience
      functions for this goal write this message.
      Carlos Martín Nieto committed
    • Remove the signature from ref-modifying functions · 659cf202
      The signature for the reflog is not something which changes
      dynamically. Almost all uses will be NULL, since we want for the
      repository's default identity to be used, making it noise.
      
      In order to allow for changing the identity, we instead provide
      git_repository_set_ident() and git_repository_ident() which allow a user
      to override the choice of signature.
      Carlos Martín Nieto committed
  15. 27 Feb, 2015 1 commit
  16. 19 Feb, 2015 1 commit
  17. 05 Feb, 2015 1 commit
    • repo: ensure we can create repo at filesystem root · 865baaf9
      Test to ensure that we can create a repository at the filesystem
      root.  Introduces a new test environment variable,
      `GITTEST_INVASIVE_FILESYSTEM` for tests that do terrible things like
      escaping the clar sandbox and writing to the root directory.  It is
      expected that the CI builds will enable this but that normal people
      would not want this.
      Edward Thomson committed
  18. 03 Feb, 2015 1 commit
  19. 08 Jan, 2015 1 commit
  20. 27 Dec, 2014 1 commit
  21. 17 Dec, 2014 1 commit
  22. 08 Nov, 2014 1 commit
  23. 07 Nov, 2014 1 commit
    • iterator: submodules are determined by an index or tree · 62a617dc
      We cannot know from looking at .gitmodules whether a directory is a
      submodule or not. We need the index or tree we are comparing against to
      tell us. Otherwise we have to assume the entry in .gitmodules is stale
      or otherwise invalid.
      
      Thus we pass the index of the repository into the workdir iterator, even
      if we do not want to compare against it. This follows what git does,
      which even for `git diff <tree>`, it will consider staged submodules as
      such.
      Carlos Martín Nieto committed
  24. 17 Sep, 2014 1 commit
  25. 03 Sep, 2014 1 commit
  26. 08 Aug, 2014 1 commit
  27. 22 Jul, 2014 1 commit
  28. 01 Jul, 2014 1 commit
  29. 27 May, 2014 1 commit
  30. 15 May, 2014 1 commit
    • Better search path sandboxing · 8487e237
      There are a number of tests that modify the global or system
      search paths during the tests.  This adds a helper function to
      make it easier to restore those paths and makes sure that they
      are getting restored in a manner that preserves test isolation.
      Russell Belfer committed
  31. 11 Apr, 2014 1 commit