summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-07-18 18:58:25 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-07-18 18:58:25 +0100
commit46b7dddab9675f66c93af7b72c92f97a2d729873 (patch)
treeba60035aa9fbfacf7bf36cbce8ede5d7c080a296
parentRepo should be const (diff)
downloadgentoobrowse-api-46b7dddab9675f66c93af7b72c92f97a2d729873.tar.bz2
gentoobrowse-api-46b7dddab9675f66c93af7b72c92f97a2d729873.tar.xz
gentoobrowse-api-46b7dddab9675f66c93af7b72c92f97a2d729873.zip
fetch_head commit can be const
-rw-r--r--gentoobrowse-api/service/utils/git.cpp2
-rw-r--r--gentoobrowse-api/service/utils/git.h2
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);