From 46b7dddab9675f66c93af7b72c92f97a2d729873 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 18 Jul 2019 18:58:25 +0100 Subject: fetch_head commit can be const --- gentoobrowse-api/service/utils/git.cpp | 2 +- gentoobrowse-api/service/utils/git.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gentoobrowse-api/service/utils/git.cpp b/gentoobrowse-api/service/utils/git.cpp index 5dc1a98..71856d8 100644 --- a/gentoobrowse-api/service/utils/git.cpp +++ b/gentoobrowse-api/service/utils/git.cpp @@ -49,7 +49,7 @@ namespace Gentoo { AdHocFormatter(FastForward, "Performing fast-forward %? -> %?\n"); AdHocFormatter(CheckOut, "Checking out %?\n"); git_oid - gitFastForward(git_repository * repo, git_annotated_commit * fetch_head) + gitFastForward(git_repository * repo, const git_annotated_commit * fetch_head) { // Test fast-forward is possible const git_annotated_commit * heads[] = { fetch_head }; diff --git a/gentoobrowse-api/service/utils/git.h b/gentoobrowse-api/service/utils/git.h index bdae557..59f06f0 100644 --- a/gentoobrowse-api/service/utils/git.h +++ b/gentoobrowse-api/service/utils/git.h @@ -43,7 +43,7 @@ namespace Gentoo { gitFetch(git_repository * repo, git_remote * remote, const char * branch); git_oid - gitFastForward(git_repository * repo, git_annotated_commit * fetch_head); + gitFastForward(git_repository * repo, const git_annotated_commit * fetch_head); void updateRepository(const std::string & path, const std::string & upstream, const std::string & branch); -- cgit v1.2.3