1. 06 Nov, 2017 1 commit
    • examples: network: fix Win32 linking errors due to getline · bf15dbf6
      The getline(3) function call is not part of ISO C and, most importantly,
      it is not implemented on Microsoft Windows platforms. As our networking
      example code makes use of getline, this breaks builds on MSVC and MinGW.
      As this code wasn't built prior to the previous commit, this was never
      noticed.
      
      Fix the error by instead implementing a `readline` function, which
      simply reads the password from stdin until it reads a newline
      character.
      Patrick Steinhardt committed
  2. 20 Oct, 2017 1 commit
    • examples: remove Makefile · 9b12eb6f
      Back in the days when libgit2 was still young, libgit2 was using plain
      Makefiles as build infrastructure. We later changed that to instead use
      the CMake build system to make cross-platform development easier. In the
      process, we forgot to remove the Makefile from our examples directory,
      which is fixed by this commit here. Furthermore, remove the accompanying
      .gitignore file, which ignores build outputs. As we do out-of-tree
      builds only nowadays, no output is generated in that directory anymore.
      Patrick Steinhardt committed
  3. 13 Oct, 2017 1 commit
  4. 12 Oct, 2017 1 commit
  5. 07 Oct, 2017 1 commit
  6. 16 Aug, 2017 1 commit
    • cmake: keep track of libraries and includes via lists · 8e31cc25
      Later on, we will move detection of required libraries, library
      directories as well as include directories into a separate
      CMakeLists.txt file inside of the source directory. Obviously, we want
      to avoid duplication here regarding these parameters.
      
      To prepare for the split, put the parameters into three variables
      LIBGIT2_LIBS, LIBGIT2_LIBDIRS and LIBGIT2_INCLUDES, tracking the
      required libraries, linking directory as well as include directories.
      These variables can later be exported into the parent scope from inside
      of the source build instructions, making them readily available for the
      other subdirectories.
      Patrick Steinhardt committed
  7. 15 May, 2017 1 commit
    • examples: network: refactor credentials callback · f0ca00e0
      The credentials callback reads the username and password via scanf into
      fixed-length arrays. While these are simply examples and as such not as
      interesting, the unchecked return value of scanf causes GCC to emit
      warnings. So while we're busy to shut up GCC, we also fix the possible
      overflow of scanf by using getline instead.
      Patrick Steinhardt committed
  8. 12 Jan, 2017 4 commits
  9. 09 Jan, 2017 1 commit
  10. 29 Dec, 2016 1 commit
  11. 10 Oct, 2016 14 commits
  12. 19 Apr, 2016 1 commit
  13. 08 Mar, 2016 1 commit
  14. 07 Oct, 2015 1 commit
  15. 08 Sep, 2015 1 commit
  16. 12 Jul, 2015 2 commits
  17. 29 Jun, 2015 1 commit
  18. 25 Jun, 2015 1 commit
  19. 22 Jun, 2015 1 commit
  20. 03 Jun, 2015 1 commit
  21. 28 May, 2015 1 commit
  22. 13 May, 2015 2 commits