1. 23 Mar, 2017 1 commit
    • config, attrcache: don't fallback to dirs literally named `~` · 29aef948
      The config and attrcache file reading code would attempt to load a file
      in a home directory by expanding the `~` and looking for the file, using
      `git_sysdir_find_global_file`.  If the file was not found, the error
      handling would look for the literal path, eg `~/filename.txt`.
      
      Use the new `git_config_expand_global_file` instead, which allows us to
      get the path to the file separately, when the path is prefixed with
      `~/`, and fail with a not found error without falling back to looking
      for the literal path.
      Edward Thomson committed
  2. 21 Feb, 2017 3 commits
  3. 17 Feb, 2017 2 commits
  4. 23 Jan, 2017 1 commit
  5. 29 Dec, 2016 1 commit
  6. 28 Oct, 2015 1 commit
  7. 03 Mar, 2015 1 commit
    • 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
  8. 15 Feb, 2015 1 commit
  9. 04 Feb, 2015 1 commit
  10. 03 Feb, 2015 1 commit
    • attrcache: don't re-read attrs during checkout · 9f779aac
      During checkout, assume that the .gitattributes files aren't
      modified during the checkout.  Instead, create an "attribute session"
      during checkout.  Assume that attribute data read in the same
      checkout "session" hasn't been modified since the checkout started.
      (But allow subsequent checkouts to invalidate the cache.)
      
      Further, cache nonexistent git_attr_file data even when .gitattributes
      files are not found to prevent re-scanning for nonexistent files.
      Edward Thomson committed
  11. 13 May, 2014 1 commit
  12. 01 May, 2014 1 commit
  13. 21 Apr, 2014 2 commits
  14. 17 Apr, 2014 4 commits