1. 10 Feb, 2018 1 commit
    • http: standardize user-agent addition · ee6be190
      The winhttp and posix http each need to add the user-agent to their
      requests.  Standardize on a single function to include this so that we
      do not get the version numbers we're sending out of sync.
      
      Assemble the complete user agent in `git_http__user_agent`, returning
      assembled strings.
      
      Co-authored-by: Patrick Steinhardt <ps@pks.im>
      Edward Thomson committed
  2. 29 Dec, 2017 1 commit
  3. 26 Nov, 2017 1 commit
  4. 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
  5. 08 Jun, 2017 1 commit
    • buffer: rely on `GITERR_OOM` set by `git_buf_try_grow` · 97eb5ef0
      The function `git_buf_try_grow` consistently calls `giterr_set_oom`
      whenever growing the buffer fails due to insufficient memory being
      available. So in fact, we do not have to do this ourselves when a call
      to any buffer-growing function has failed due to an OOM situation. But
      we still do so in two functions, which this patch cleans up.
      Patrick Steinhardt committed
  6. 01 Mar, 2017 1 commit
  7. 06 Feb, 2017 2 commits
  8. 21 Jan, 2017 1 commit
  9. 16 Jan, 2017 1 commit
  10. 29 Dec, 2016 1 commit
  11. 07 Jun, 2016 1 commit
  12. 19 Apr, 2016 4 commits
  13. 03 Mar, 2016 1 commit
  14. 16 Feb, 2016 1 commit
  15. 19 Jan, 2016 1 commit
    • winhttp: name mangle class / iid on mingw · 5c7f2f01
      Standard Windows type systems define CLSID_InternetSecurityManager
      and IID_IInternetSecurityManager, but MinGW lacks these definitions.
      As a result, we must hardcode these definitions ourselves.  However,
      we should not use a public struct with those names, lest another
      library do the same thing and consumers cannot link to both.
      Edward Thomson committed
  16. 01 Dec, 2015 1 commit
  17. 12 Nov, 2015 1 commit
  18. 25 Sep, 2015 1 commit
  19. 10 Sep, 2015 1 commit
  20. 08 Sep, 2015 2 commits
  21. 10 Jul, 2015 1 commit
  22. 30 Jun, 2015 1 commit
  23. 19 Mar, 2015 1 commit
  24. 18 Mar, 2015 1 commit
  25. 16 Mar, 2015 2 commits
  26. 13 Feb, 2015 1 commit
  27. 09 Dec, 2014 1 commit
  28. 03 Dec, 2014 1 commit
  29. 27 Oct, 2014 1 commit
  30. 22 Sep, 2014 1 commit
  31. 16 Sep, 2014 4 commits