1. 12 Sep, 2012 1 commit
  2. 11 Sep, 2012 1 commit
    • Add git_repository_hashfile to hash with filters · 47bfa0be
      The existing `git_odb_hashfile` does not apply text filtering
      rules because it doesn't have a repository context to evaluate
      the correct rules to apply.  This adds a new hashfile function
      that will apply repository-specific filters (based on config,
      attributes, and filename) before calculating the hash.
      Russell Belfer committed
  3. 29 Aug, 2012 1 commit
  4. 24 Aug, 2012 1 commit
  5. 22 Aug, 2012 1 commit
    • Add template dir and set gid to repo init · ca1b6e54
      This extends git_repository_init_ext further with support for
      initializing the repository from an external template directory
      and with support for the "create shared" type flags that make a
      set GID repository directory.
      
      This also adds tests for much of the new functionality to the
      existing `repo/init.c` test suite.
      
      Also, this adds a bunch of new utility functions including a
      very general purpose `git_futils_mkdir` (with the ability to
      make paths and to chmod the paths post-creation) and a file
      tree copying function `git_futils_cp_r`.  Also, this includes
      some new path functions that were useful to keep the code
      simple.
      Russell Belfer committed
  6. 01 Aug, 2012 1 commit
  7. 11 Jul, 2012 1 commit
    • Add flag to write gitlink on setting repo workdir · 991a56c7
      This added a flag to the `git_repository_set_workdir()` function
      that enables generation of a `.git` gitlink file that links the
      new workdir to the parent repository.  Essentially, the flag tells
      the function to write out the changes to disk to permanently set
      the workdir of the repository to the new path.
      
      If you pass this flag as true, then setting the workdir to something
      other than the default workdir (i.e. the parent of the .git repo
      directory), will create a plain file named ".git" with the standard
      gitlink contents "gitdir: <repo-path>", and also update the
      "core.worktree" and "core.bare" config values.
      
      Setting the workdir to the default repo workdir will clear the
      core.worktree flag (but still permanently set core.bare to false).
      
      BTW, the libgit2 API does not currently provide a function for
      clearing the workdir and converting a non-bare repo into a bare one.
      Russell Belfer committed
  8. 03 Jul, 2012 1 commit
  9. 22 Jun, 2012 2 commits
  10. 21 Jun, 2012 1 commit
  11. 12 Jun, 2012 2 commits
  12. 05 Jun, 2012 2 commits
  13. 17 May, 2012 2 commits
  14. 11 May, 2012 1 commit
  15. 08 May, 2012 3 commits
  16. 02 May, 2012 2 commits
  17. 23 Apr, 2012 1 commit
  18. 17 Apr, 2012 1 commit
  19. 15 Apr, 2012 1 commit
  20. 14 Apr, 2012 2 commits
  21. 11 Apr, 2012 3 commits
    • Refactor git_repository_open with new options · 7784bcbb
      Add a new command `git_repository_open_ext` with extended options
      that control how searching for a repository will be done.  The
      existing `git_repository_open` and `git_repository_discover` are
      reimplemented on top of it.  We may want to change the default
      behavior of `git_repository_open` but this commit does not do that.
      
      Improve support for "gitdir" files where the work dir is separate
      from the repo and support for the "separate-git-dir" config.  Also,
      add support for opening repos created with `git-new-workdir` script
      (although I have only confirmed that they can be opened, not that
      all functions work correctly).
      
      There are also a few minor changes that came up:
      
      - Fix `git_path_prettify` to allow in-place prettifying.
      
      - Fix `git_path_root` to support backslashes on Win32.  This fix
        should help many repo open/discover scenarios - it is the one
        function called when opening before prettifying the path.
      
      - Tweak `git_config_get_string` to set the "out" pointer to NULL
        if the config value is not found.  Allows some other cleanup.
      
      - Fix a couple places that should have been calling
        `git_repository_config__weakptr` and were not.
      
      - Fix `cl_git_sandbox_init` clar helper to support bare repos.
      Russell Belfer committed
  22. 01 Apr, 2012 2 commits
  23. 31 Mar, 2012 1 commit
  24. 30 Mar, 2012 1 commit
  25. 03 Feb, 2012 1 commit
  26. 25 Jan, 2012 3 commits