1. 03 Dec, 2015 2 commits
    • Merge pull request #3534 from ethomson/index_canonicalize_fix · 2d36e145
      index: canonicalize inserted paths safely
      Carlos Martín Nieto committed
    • index: canonicalize inserted paths safely · 626f9e24
      When adding to the index, we look to see if a portion of the given
      path matches a portion of a path in the index.  If so, we will use
      the existing path information.  For example, when adding `foo/bar.c`,
      if there is an index entry to `FOO/other` and the filesystem is case
      insensitive, then we will put `bar.c` into the existing tree instead
      of creating a new one with a different case.
      
      Use `strncmp` to do that instead of `memcmp`.  When we `bsearch`
      into the index, we locate the position where the new entry would
      go.  The index entry at that position does not necessarily have
      a relation to the entry we're adding, so we cannot make assumptions
      and use `memcmp`.  Instead, compare them as strings.
      
      When canonicalizing paths, we look for the first index entry that
      matches a given substring.
      Edward Thomson committed
  2. 01 Dec, 2015 3 commits
  3. 30 Nov, 2015 5 commits
  4. 28 Nov, 2015 4 commits
  5. 25 Nov, 2015 17 commits
  6. 24 Nov, 2015 5 commits
  7. 23 Nov, 2015 1 commit
    • checkout: only consider nsecs when built that way · 25e84f95
      When examining the working directory and determining whether it's
      up-to-date, only consider the nanoseconds in the index entry when
      built with `GIT_USE_NSEC`.  This prevents us from believing that
      the working directory is always dirty when the index was originally
      written with a git client that uinderstands nsecs (like git 2.x).
      Edward Thomson committed
  8. 21 Nov, 2015 2 commits
  9. 20 Nov, 2015 1 commit