Merge pull request #6842 from anatol/main

Headers cleanup
This commit is contained in:
Edward Thomson
2024-07-12 15:11:31 +01:00
committed by GitHub
6 changed files with 5 additions and 27 deletions

View File

@@ -84,30 +84,6 @@ typedef struct {
GIT_DIFF_FIND_OPTIONS_INIT \
}
/**
* Create a diff for a commit in mbox format for sending via email.
*
* @param out buffer to store the e-mail patch in
* @param diff the changes to include in the email
* @param patch_idx the patch index
* @param patch_count the total number of patches that will be included
* @param commit_id the commit id for this change
* @param summary the commit message for this change
* @param body optional text to include above the diffstat
* @param author the person who authored this commit
* @param opts email creation options
*/
GIT_EXTERN(int) git_email_create_from_diff(
git_buf *out,
git_diff *diff,
size_t patch_idx,
size_t patch_count,
const git_oid *commit_id,
const char *summary,
const char *body,
const git_signature *author,
const git_email_create_options *opts);
/**
* Create a diff for a commit in mbox format for sending via email.
* The commit must not be a merge commit.

View File

@@ -286,7 +286,7 @@ GIT_EXTERN(int) git_odb_expand_ids(
* @param db database to refresh
* @return 0 on success, error code otherwise
*/
GIT_EXTERN(int) git_odb_refresh(struct git_odb *db);
GIT_EXTERN(int) git_odb_refresh(git_odb *db);
/**
* List all objects available in the database

View File

@@ -16,7 +16,7 @@
#include "diff_generate.h"
#include "git2/version.h"
#include "git2/email.h"
#include "git2/sys/email.h"
struct patch_id_args {
git_diff *diff;

View File

@@ -16,6 +16,7 @@
#include "git2/email.h"
#include "git2/patch.h"
#include "git2/sys/email.h"
#include "git2/version.h"
/*

View File

@@ -1923,7 +1923,7 @@ void git_odb_backend_data_free(git_odb_backend *backend, void *data)
git__free(data);
}
int git_odb_refresh(struct git_odb *db)
int git_odb_refresh(git_odb *db)
{
size_t i;
int error;

View File

@@ -1,5 +1,6 @@
#include "clar.h"
#include "clar_libgit2.h"
#include "git2/sys/email.h"
#include "diff_generate.h"