Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions include/git2/email.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion include/git2/odb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/libgit2/diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions src/libgit2/email.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include "git2/email.h"
#include "git2/patch.h"
#include "git2/sys/email.h"
#include "git2/version.h"

/*
Expand Down
2 changes: 1 addition & 1 deletion src/libgit2/odb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions tests/libgit2/email/create.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "clar.h"
#include "clar_libgit2.h"
#include "git2/sys/email.h"

#include "diff_generate.h"

Expand Down