1. 12 Feb, 2023 1 commit
  2. 14 Jul, 2022 1 commit
  3. 20 Jun, 2022 1 commit
  4. 15 Jun, 2022 1 commit
  5. 23 Feb, 2022 1 commit
  6. 17 Oct, 2021 1 commit
    • str: introduce `git_str` for internal, `git_buf` is external · f0e693b1
      libgit2 has two distinct requirements that were previously solved by
      `git_buf`.  We require:
      
      1. A general purpose string class that provides a number of utility APIs
         for manipulating data (eg, concatenating, truncating, etc).
      2. A structure that we can use to return strings to callers that they
         can take ownership of.
      
      By using a single class (`git_buf`) for both of these purposes, we have
      confused the API to the point that refactorings are difficult and
      reasoning about correctness is also difficult.
      
      Move the utility class `git_buf` to be called `git_str`: this represents
      its general purpose, as an internal string buffer class.  The name also
      is an homage to Junio Hamano ("gitstr").
      
      The public API remains `git_buf`, and has a much smaller footprint.  It
      is generally only used as an "out" param with strict requirements that
      follow the documentation.  (Exceptions exist for some legacy APIs to
      avoid breaking callers unnecessarily.)
      
      Utility functions exist to convert a user-specified `git_buf` to a
      `git_str` so that we can call internal functions, then converting it
      back again.
      Edward Thomson committed
  7. 22 Jan, 2019 1 commit
  8. 01 Dec, 2018 1 commit
  9. 13 Jul, 2018 1 commit
    • treewide: remove use of C++ style comments · 9994cd3f
      C++ style comment ("//") are not specified by the ISO C90 standard and
      thus do not conform to it. While libgit2 aims to conform to C90, we did
      not enforce it until now, which is why quite a lot of these
      non-conforming comments have snuck into our codebase. Do a tree-wide
      conversion of all C++ style comments to the supported C style comments
      to allow us enforcing strict C90 compliance in a later commit.
      Patrick Steinhardt committed
  10. 10 Jun, 2018 1 commit
  11. 17 Mar, 2016 1 commit
  12. 16 Feb, 2016 1 commit
  13. 11 Feb, 2016 1 commit
    • commit: don't forget the last header field · 460ae11f
      When we moved the logic to handle the first one, wrong loop logic was
      kept in place which meant we still finished early. But we now notice it
      because we're not reading past the last LF we find.
      
      This was not noticed before as the last field in the tested commit was
      multi-line which does not trigger the early break.
      Carlos Martín Nieto committed
  14. 09 Feb, 2016 2 commits
  15. 22 Jun, 2015 1 commit
  16. 11 Jun, 2015 1 commit
    • commit: ignore multiple author fields · 65d69fe8
      Some tools create multiple author fields. git is rather lax when parsing
      them, although fsck does complain about them. This means that they exist
      in the wild.
      
      As it's not too taxing to check for them, and there shouldn't be a
      noticeable slowdown when dealing with correct commits, add logic to skip
      over these extra fields when parsing the commit.
      Carlos Martín Nieto committed
  17. 14 Nov, 2013 1 commit
  18. 03 Oct, 2013 1 commit
  19. 30 Sep, 2013 2 commits
  20. 03 May, 2013 1 commit
  21. 22 Apr, 2013 3 commits
  22. 15 Apr, 2013 1 commit
  23. 14 Mar, 2013 1 commit
  24. 20 Feb, 2013 1 commit
  25. 25 Jan, 2013 1 commit
  26. 21 Jan, 2013 1 commit
  27. 17 Jan, 2013 1 commit
    • Add skipping of unknown commit headers · 291090a0
      This moves the check for the "encoding" header into a loop which
      is just scanning for non-required headers at the end of a commit
      header.  That loop will skip unrecognized lines (including header
      continuation lines) until a terminating completely blank line is
      found, and only then does it move to reading the commit message.
      Russell Belfer committed
  28. 03 Dec, 2012 1 commit
  29. 30 Nov, 2012 1 commit
  30. 21 Mar, 2012 1 commit
    • Ported t04_commit.c to Clar. · e0799b6c
      Created a copy of tests/resources/testrepo.git that is compatible
      with the Clar sandboxing helpers.
      
      Restructured commit test suites to use Clar sandbox helpers.
      
      Now using typed data arrays rather than lots of macros to define test
      cases.
      Ben Straub committed