1. 23 Feb, 2022 2 commits
  2. 02 Sep, 2021 1 commit
    • util: introduce `git__strlcmp` · 1196de4f
      Introduce a utility function that compares a NUL terminated string to a
      possibly not-NUL terminated string with length.  This is similar to
      `strncmp` but with an added check to ensure that the lengths match (not
      just the `size` portion of the two strings).
      Edward Thomson committed
  3. 20 Dec, 2017 1 commit
    • util: introduce `git__prefixncmp` and consolidate implementations · 86219f40
      Introduce `git_prefixncmp` that will search up to the first `n`
      characters of a string to see if it is prefixed by another string.
      This is useful for examining if a non-null terminated character
      array is prefixed by a particular substring.
      
      Consolidate the various implementations of `git__prefixcmp` around a
      single core implementation and add some test cases to validate its
      behavior.
      Edward Thomson committed
  4. 29 May, 2015 2 commits
  5. 14 Nov, 2013 1 commit
  6. 17 Jun, 2013 1 commit
  7. 25 Jan, 2012 1 commit
  8. 14 Sep, 2011 1 commit