Revert "commit: fix const declaration"

This reverts commit cf19ddc522, which
was breaking for several projects.
This commit is contained in:
Edward Thomson
2024-06-13 15:20:40 +02:00
parent 6c5520f334
commit 49d3fadfca
17 changed files with 36 additions and 33 deletions

View File

@@ -366,7 +366,7 @@ GIT_EXTERN(int) git_commit_create(
const char *message,
const git_tree *tree,
size_t parent_count,
git_commit * const parents[]);
const git_commit *parents[]);
/**
* Create new commit in the repository using a variable argument list.
@@ -512,7 +512,7 @@ GIT_EXTERN(int) git_commit_create_buffer(
const char *message,
const git_tree *tree,
size_t parent_count,
git_commit * const parents[]);
const git_commit *parents[]);
/**
* Create a commit object from the given buffer and signature
@@ -581,7 +581,7 @@ typedef int (*git_commit_create_cb)(
const char *message,
const git_tree *tree,
size_t parent_count,
git_commit * const parents[],
const git_commit *parents[],
void *payload);
/** An array of commits returned from the library */