Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 942058
Collapse All | Expand All

(-)a/kicad/project_tree_pane.cpp (-4 / +11 lines)
Lines 2240-2251 Link Here
2240
        }
2240
        }
2241
2241
2242
        git_oid           oid;
2242
        git_oid           oid;
2243
        // Check if the libgit2 library version is 1.8.0 or higher
2243
2244
#if( LIBGIT2_VER_MAJOR > 1 ) || ( LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR >= 8 )
2244
#if ( ( LIBGIT2_VER_MAJOR == 1                                                                     \
2245
        // For libgit2 version 1.8.0 and above
2245
        && ( ( LIBGIT2_VER_MINOR == 8                                                              \
2246
               && ( LIBGIT2_VER_REVISION < 2 || LIBGIT2_VER_REVISION == 3 ) )                      \
2247
             || ( LIBGIT2_VER_MINOR > 8 ) ) )                                                      \
2248
      || LIBGIT2_VER_MAJOR > 1 )
2249
        // For libgit2 versions 1.8.0, 1.8.1.
2250
        // This change was reverted for 1.8.2
2251
        // This change was re-reverted for 1.8.3
2252
        // This change was re-re-reverted for 1.8.4+
2246
        git_commit* const parents[1] = { parent };
2253
        git_commit* const parents[1] = { parent };
2247
#else
2254
#else
2248
        // For libgit2 versions older than 1.8.0
2255
        // For libgit2 versions older than 1.8.0, or equal to 1.8.2/1.8.4
2249
        const git_commit* parents[1] = { parent };
2256
        const git_commit* parents[1] = { parent };
2250
#endif
2257
#endif
2251
2258

Return to bug 942058