1. 04 Apr, 2017 2 commits
  2. 08 Feb, 2017 3 commits
    • path: ensure dirname on Win32 prefix always has a trailing '/' · 9e8d75c7
      When calling `git_path_dirname_r` on a Win32 prefix, e.g. a drive
      or network share prefix, we always want to return the trailing
      '/'. This does not work currently when passing in a path like
      'C:', where the '/' would not be appended correctly.
      
      Fix this by appending a '/' if we try to normalize a Win32 prefix
      and there is no trailing '/'.
      Patrick Steinhardt committed
    • path: get correct dirname for Windows root · 5d59520c
      Getting the dirname of a filesystem root should return the filesystem
      root itself. E.g. the dirname of "/" is always "/". On Windows, we
      emulate this behavior and as such, we should return e.g. "C:/" if
      calling dirname on "C:/". But we currently fail to do so and instead
      return ".", as we do not check if we actually have a Windows prefix
      before stripping off the last directory component.
      
      Fix this by calling out to `win32_prefix_length` immediately after
      stripping trailing slashes, returning early if we have a prefix.
      Patrick Steinhardt committed
    • path: extract `win32_path_prefix` function · d8c06070
      Extract code which determines if a path is at a Windows system's root.
      This incluses drive prefixes (e.g. "C:\") as well as network computer
      names (e.g. "//computername/").
      Patrick Steinhardt committed
  3. 29 Dec, 2016 1 commit
  4. 12 Dec, 2016 1 commit
  5. 14 Nov, 2016 2 commits
  6. 26 May, 2016 1 commit
  7. 24 Mar, 2016 1 commit
  8. 23 Feb, 2016 1 commit
  9. 17 Feb, 2016 1 commit
    • index: allow read of index w/ illegal entries · 318b825e
      Allow `git_index_read` to handle reading existing indexes with
      illegal entries.  Allow the low-level `git_index_add` to add
      properly formed `git_index_entry`s even if they contain paths
      that would be illegal for the current filesystem (eg, `AUX`).
      Continue to disallow `git_index_add_bypath` from adding entries
      that are illegal universally illegal (eg, `.git`, `foo/../bar`).
      Edward Thomson committed
  10. 15 Dec, 2015 1 commit
  11. 17 Sep, 2015 1 commit
  12. 13 Sep, 2015 2 commits
  13. 05 Aug, 2015 1 commit
  14. 22 Jul, 2015 1 commit
  15. 13 Jul, 2015 1 commit
  16. 24 Jun, 2015 1 commit
    • buffer: don't allow growing borrowed buffers · caab22c0
      When we don't own a buffer (asize=0) we currently allow the usage of
      grow to copy the memory into a buffer we do own. This muddles the
      meaning of grow, and lets us be a bit cavalier with ownership semantics.
      
      Don't allow this any more. Usage of grow should be restricted to buffers
      which we know own their own memory. If unsure, we must not attempt to
      modify it.
      Carlos Martín Nieto committed
  17. 17 Jun, 2015 1 commit
  18. 15 Jun, 2015 2 commits
  19. 12 Jun, 2015 1 commit
  20. 06 Jun, 2015 1 commit
  21. 29 May, 2015 1 commit
    • git__tolower: a tolower() that isn't dumb · 75a4636f
      Some brain damaged tolower() implementations appear to want to
      take the locale into account, and this may require taking some
      insanely aggressive lock on the locale and slowing down what should
      be the most trivial of trivial calls for people who just want to
      downcase ASCII.
      Edward Thomson committed
  22. 15 May, 2015 1 commit
  23. 01 May, 2015 8 commits
  24. 08 Apr, 2015 1 commit
  25. 27 Feb, 2015 1 commit
  26. 13 Feb, 2015 2 commits