1. 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
  2. 12 Jul, 2017 1 commit
  3. 03 Jul, 2017 1 commit
    • Make sure to always include "common.h" first · 0c7f49dd
      Next to including several files, our "common.h" header also declares
      various macros which are then used throughout the project. As such, we
      have to make sure to always include this file first in all
      implementation files. Otherwise, we might encounter problems or even
      silent behavioural differences due to macros or defines not being
      defined as they should be. So in fact, our header and implementation
      files should make sure to always include "common.h" first.
      
      This commit does so by establishing a common include pattern. Header
      files inside of "src" will now always include "common.h" as its first
      other file, separated by a newline from all the other includes to make
      it stand out as special. There are two cases for the implementation
      files. If they do have a matching header file, they will always include
      this one first, leading to "common.h" being transitively included as
      first file. If they do not have a matching header file, they instead
      include "common.h" as first file themselves.
      
      This fixes the outlined problems and will become our standard practice
      for header and source files inside of the "src/" from now on.
      Patrick Steinhardt committed
  4. 01 May, 2017 1 commit
  5. 29 Dec, 2016 1 commit
  6. 17 Dec, 2016 1 commit
  7. 28 Apr, 2016 1 commit
  8. 18 Feb, 2016 1 commit
  9. 21 Oct, 2015 1 commit
  10. 27 Oct, 2014 1 commit
  11. 30 Sep, 2014 1 commit
  12. 10 Sep, 2014 1 commit
  13. 07 May, 2014 1 commit
  14. 18 Apr, 2014 1 commit
  15. 08 Feb, 2014 1 commit
    • Add git_commit_amend API · 80c29fe9
      This adds an API to amend an existing commit, basically a shorthand
      for creating a new commit filling in missing parameters from the
      values of an existing commit.  As part of this, I also added a new
      "sys" API to create a commit using a callback to get the parents.
      This allowed me to rewrite all the other commit creation APIs so
      that temporary allocations are no longer needed.
      Russell Belfer committed
  16. 14 Jan, 2014 1 commit
  17. 13 Nov, 2013 1 commit
  18. 16 Aug, 2013 1 commit
  19. 11 Jun, 2013 1 commit
  20. 10 Jun, 2013 1 commit
    • Reorganize diff and add basic diff driver · 114f5a6c
      This is a significant reorganization of the diff code to break it
      into a set of more clearly distinct files and to document the new
      organization.  Hopefully this will make the diff code easier to
      understand and to extend.
      
      This adds a new `git_diff_driver` object that looks of diff driver
      information from the attributes and the config so that things like
      function content in diff headers can be provided.  The full driver
      spec is not implemented in the commit - this is focused on the
      reorganization of the code and putting the driver hooks in place.
      
      This also removes a few #includes from src/repository.h that were
      overbroad, but as a result required extra #includes in a variety
      of places since including src/repository.h no longer results in
      pulling in the whole world.
      Russell Belfer committed
  21. 02 Jun, 2013 1 commit
  22. 15 May, 2013 2 commits
  23. 18 Apr, 2013 1 commit
  24. 20 Feb, 2013 3 commits
  25. 21 Jan, 2013 1 commit
  26. 08 Jan, 2013 1 commit
  27. 03 Dec, 2012 1 commit
  28. 30 Nov, 2012 1 commit
  29. 04 Sep, 2012 1 commit
  30. 28 Aug, 2012 1 commit
  31. 11 Jul, 2012 1 commit
  32. 06 Jun, 2012 1 commit
  33. 17 May, 2012 1 commit
  34. 15 May, 2012 1 commit
  35. 17 Apr, 2012 1 commit
  36. 21 Mar, 2012 1 commit
  37. 20 Mar, 2012 1 commit