1. 13 Jul, 2018 1 commit
    • ignore: improve `git_ignore_path_is_ignored` description Git analogy · 9cab93c0
      In attempt to provide adequate Git command analogy in regards to
      ignored files handling, `git_ignore_path_is_ignored` description
      mentions doing `git add .` on directory containing the file, and
      whether the file in question would be added or not - but behavior of
      the two matches for untracked files only, making the comparison
      misleading in general sense.
      
      For tracked files, Git doesn't subject them to ignore rules, so even
      if a rule applies, `git add .` would actually add the tracked file
      changes to index, while `git_ignore_path_is_ignored` would still
      consider the file being ignored (as it doesn't check the index, as
      documented).
      
      Let's provide `git check-ignore --no-index` as analogous Git command
      example instead, being more aligned with what `git_ignore_path_is_ignored`
      is about, no matter if the file in question is already tracked or not.
      
      See issue #4720 (git_ignore_path_is_ignored documentation
      misleading?, 2018-07-10)[1] for additional information.
      
      [1] https://github.com/libgit2/libgit2/issues/4720
      Igor Djordjevic committed
  2. 09 Jul, 2018 1 commit
  3. 08 Jul, 2018 1 commit
  4. 06 Jul, 2018 4 commits
  5. 05 Jul, 2018 1 commit
    • delta: fix overflow when computing limit · e087c0de
      When checking whether a delta base offset and length fit into the base
      we have in memory already, we can trigger an overflow which breaks the
      check. This would subsequently result in us reading memory from out of
      bounds of the base.
      
      The issue is easily fixed by checking for overflow when adding `off` and
      `len`, thus guaranteeting that we are never indexing beyond `base_len`.
      This corresponds to the git patch 8960844a7 (check patch_delta bounds
      more carefully, 2006-04-07), which adds these overflow checks.
      
      Reported-by: Riccardo Schirone <rschiron@redhat.com>
      Patrick Steinhardt committed
  6. 30 Jun, 2018 1 commit
  7. 29 Jun, 2018 23 commits
  8. 27 Jun, 2018 3 commits
  9. 26 Jun, 2018 5 commits