1. 05 Oct, 2018 1 commit
  2. 06 Aug, 2018 1 commit
  3. 05 Jul, 2018 1 commit
  4. 06 Jun, 2018 1 commit
  5. 29 May, 2018 3 commits
  6. 11 Mar, 2018 1 commit
  7. 08 Mar, 2018 1 commit
  8. 02 Mar, 2018 1 commit
  9. 23 Feb, 2018 1 commit
  10. 20 Feb, 2018 1 commit
  11. 02 Feb, 2018 1 commit
  12. 22 Jan, 2018 1 commit
  13. 21 Jan, 2018 1 commit
  14. 19 Jan, 2018 1 commit
  15. 17 Jan, 2018 2 commits
  16. 12 Jan, 2018 1 commit
    • refs: document need to free refs in foreach-callback · 5963292f
      References passed to the callback function of `git_reference_foreach`
      are expected to be owned by the callback. As such, they are never being
      freed by `git_reference_foreach`, but will have to be freed by the
      caller. This small detail is never mentioned in the function's
      documentation, though, making it easy to get wrong. Document this to
      make it discoverable.
      Patrick Steinhardt committed
  17. 04 Jan, 2018 1 commit
  18. 31 Dec, 2017 1 commit
  19. 19 Dec, 2017 1 commit
  20. 30 Nov, 2017 1 commit
  21. 25 Nov, 2017 1 commit
  22. 19 Nov, 2017 1 commit
  23. 18 Nov, 2017 1 commit
  24. 12 Nov, 2017 1 commit
    • signature: distinguish +0000 and -0000 UTC offsets · f063dafb
      Git considers '-0000' a valid offset for signature lines.  They need to
      be treated as _not_ equal to a '+0000' signature offset.  Parsing a
      signature line stores the offset in a signed integer which does not
      distinguish between `+0` and `-0`.
      
      This patch adds an additional flag `sign` to the `git_time` in the
      `signature` object which is populated with the sign of the offset.  In
      addition to exposing this information to the user, this information is
      also used to compare signatures.
      
      /cc @pks-t @ethomson
      Henry Kleynhans committed
  25. 10 Nov, 2017 1 commit
  26. 09 Oct, 2017 2 commits
    • config: pass repository when opening config files · 529e873c
      Our current configuration logic is completely oblivious of any
      repository, but only cares for actual file paths. Unfortunately, we are
      forced to break this assumption by the introduction of conditional
      includes, which are evaluated in the context of a repository. Right now,
      only one conditional exists with "gitdir:" -- it will only include the
      configuration if the current repository's git directory matches the
      value passed to "gitdir:".
      
      To support these conditionals, we have to break our API and make the
      repository available when opening a configuration file. This commit
      extends the `open` call of configuration backends to include another
      repository and adjusts existing code to have it available. This includes
      the user-visible functions `git_config_add_file_ondisk` and
      `git_config_add_backend`.
      Patrick Steinhardt committed
    • repository: constify several repo parameters for getters · d02cf564
      Several functions to retrieve variables from a repository only return
      immutable values, which allows us to actually constify the passed-in
      repository parameter. Do so to help a later patch, which will only have
      access to a constant repository.
      Patrick Steinhardt committed
  27. 06 Oct, 2017 6 commits
  28. 11 Aug, 2017 1 commit
  29. 30 Jul, 2017 1 commit
  30. 10 Jul, 2017 1 commit
    • patch_generate: represent buffers as void pointers · 9093ced6
      Pointers to general data should usually be used as a void pointer such
      that it is possible to hand in variables of a different pointer type
      without the need to cast. This is the same when creating patches from
      buffers, where the buffers may contain arbitrary data. Instead of
      requiring the caller to care whether his buffer is e.g. `char *` or
      `unsigned char *`, we should instead just accept a `void *`. This is
      also consistent in how we tread other types like for example `git_blob`,
      which also just has a void pointer as its raw contents.
      Patrick Steinhardt committed
  31. 30 Jun, 2017 1 commit