1. 28 Aug, 2022 1 commit
  2. 05 May, 2022 1 commit
  3. 10 Dec, 2021 1 commit
  4. 06 Dec, 2020 1 commit
  5. 13 Feb, 2020 1 commit
  6. 15 Nov, 2019 1 commit
  7. 11 May, 2019 1 commit
  8. 26 Dec, 2018 1 commit
  9. 11 Aug, 2018 1 commit
  10. 26 Apr, 2018 1 commit
  11. 29 Jul, 2017 2 commits
  12. 14 Jun, 2017 4 commits
  13. 13 Jun, 2017 12 commits
    • Mohseen Mukaddam's avatar
    • Mohseen Mukaddam's avatar
    • Patrick Steinhardt's avatar
      tests: odb: add more low-level backend tests · a180e7d9
      Patrick Steinhardt authored
      Introduce a new test suite "odb::backend::simple", which utilizes the
      fake backend to exercise the ODB abstraction layer. While such tests
      already exist for the case where multiple backends are put together, no
      direct testing for functionality with a single backend exist yet.
      a180e7d9
    • Patrick Steinhardt's avatar
      tests: odb: implement `exists_prefix` for the fake backend · b2e53f36
      Patrick Steinhardt authored
      The fake backend currently implements all reading functions except for
      the `exists_prefix` one. Implement it to enable further testing of the
      ODB layer.
      b2e53f36
    • Patrick Steinhardt's avatar
      tests: odb: use correct OID length · 983e627d
      Patrick Steinhardt authored
      The `search_object` function takes the OID length as one of its
      parameters, where its maximum length is `GIT_OID_HEXSZ`. The `exists`
      function of the fake backend used `GIT_OID_RAWSZ` though, leading to
      only the first half of the OID being used when finding the correct
      object.
      983e627d
    • Patrick Steinhardt's avatar
      tests: odb: have the fake backend detect ambiguous prefixes · c4cbb3b1
      Patrick Steinhardt authored
      In order to be able to test the ODB prefix functions, we need to be able
      to detect ambiguous prefixes in case multiple objects with the same
      prefix exist in the fake ODB. Extend `search_object` to detect ambiguous
      queries and have callers return its error code instead of always
      returning `GIT_ENOTFOUND`.
      c4cbb3b1
    • Patrick Steinhardt's avatar
      tests: core: test initialization of `git_proxy_options` · 95170294
      Patrick Steinhardt authored
      Initialization of the `git_proxy_options` structure is never tested
      anywhere. Include it in our usual initialization test in
      "core::structinit::compare".
      95170294
    • Patrick Steinhardt's avatar
      tests: network: add missing include for `git_repository_new` · bee423cc
      Patrick Steinhardt authored
      A newly added test uses the `git_repository_new` function without the
      corresponding header file being included. While this works due to the
      compiler deducing the correct function signature, we should obviously
      just include the function's declaration file.
      bee423cc
    • Patrick Steinhardt's avatar
      cmake: disable optimization on debug builds · a64532e1
      Patrick Steinhardt authored
      While our debug builds on MSVC platforms already tune the code optimizer
      to aid debugging code, all the other platforms still use the default
      optimization level. This makes it hard for developers on these platforms
      to actually debug code while maintaining his sanity due to optimizations
      like inlined code, elided variables etc.
      
      To help this common use case, we can simply follow the MSVC example and
      turn off code optimization with "-O0" for debug builds. While it would
      be preferable to instead use "-Og" supported by more modern compilers,
      we cannot guarantee that this level is available on all supported
      platforms.
      a64532e1
    • Patrick Steinhardt's avatar
      cmake: set "-D_DEBUG" on non-Windows platforms · 61399953
      Patrick Steinhardt authored
      In our code base, we have some occasions where we use the "_DEBUG"
      preprocessor macro to enable additional code which should not be part of
      release builds. While we define this flag on MSVC platforms, it is
      guarded by the conditional `WIN32 AND NOT CYGWIN` on other platforms
      since 19be3f9e (Improve MSVC compiler, linker flags, 2013-02-13). While
      this condition can be fulfilled by the MSVC platform, it is never
      encountered due to being part of the `ELSE` part of `IF (MSVC)`.
      
      The intention of the conditional was most likely to avoid the
      preprocessor macro on Cygwin platforms, but to include it on everthing
      else. As such, the correct condition here would be `IF (NOT CYGWIN)`
      instead. But digging a bit further, the condition is only ever used in
      two places:
      
      1. To skip the test in "core::structinit", which should also work on
         Cygwin.
      2. In "src/win32/git2.rc", where it is used to set additional file
         flags. As this file is included in MSVC builds only, it cannot cause
         any harm to set "_DEBUG" on Cygwin here.
      
      As such, we can simply drop the conditional and always set "-D_DEBUG" on
      all platforms.
      61399953
    • Patrick Steinhardt's avatar
      cmake: remove stale comment on precompiled headers · e94be4c0
      Patrick Steinhardt authored
      In commit 9f75a9ce (Turning on runtime checks when building debug under
      MSVC., 2012-03-30), we introduced a comment "Precompiled headers", which
      actually refers to no related commands. Seeing that the comment never
      had anything to refer to, we can simply remove it here.
      e94be4c0
    • Patrick Steinhardt's avatar
      travis: replace use of deprecated homebrew/dupes tap · 96d02989
      Patrick Steinhardt authored
      The formulae provided by the homebrew/dupes tap are deprecated since at
      least April 4, 2017, with formulae having been migrated to
      homebrew/core.
      
      Replace the deprecated reference to "homebrew/dupes/zlib" with only
      "zlib".
      96d02989
  14. 12 Jun, 2017 12 commits