Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit 5ffa512

Browse files
committed
libgit2 1.1.0
1 parent ef2695e commit 5ffa512

17 files changed

+73
-23
lines changed

include/git2/annotated_commit.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ GIT_EXTERN(int) git_annotated_commit_lookup(
7878
const git_oid *id);
7979

8080
/**
81-
* Creates a `git_annotated_comit` from a revision string.
81+
* Creates a `git_annotated_commit` from a revision string.
8282
*
8383
* See `man gitrevisions`, or
8484
* http://git-scm.com/docs/git-rev-parse.html#_specifying_revisions for

include/git2/blame.h

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ typedef enum {
4747
* to canonical real names and email addresses. The mailmap will be read
4848
* from the working directory, or HEAD in a bare repository. */
4949
GIT_BLAME_USE_MAILMAP = (1<<5),
50+
/** Ignore whitespace differences */
51+
GIT_BLAME_IGNORE_WHITESPACE = (1<<6),
5052
} git_blame_flag_t;
5153

5254
/**

include/git2/common.h

+15-3
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ typedef enum {
205205
GIT_OPT_GET_PACK_MAX_OBJECTS,
206206
GIT_OPT_SET_PACK_MAX_OBJECTS,
207207
GIT_OPT_DISABLE_PACK_KEEP_FILE_CHECKS,
208-
GIT_OPT_ENABLE_HTTP_EXPECT_CONTINUE
208+
GIT_OPT_ENABLE_HTTP_EXPECT_CONTINUE,
209+
GIT_OPT_GET_MWINDOW_FILE_LIMIT,
210+
GIT_OPT_SET_MWINDOW_FILE_LIMIT
209211
} git_libgit2_opt_t;
210212

211213
/**
@@ -227,8 +229,18 @@ typedef enum {
227229
*
228230
* * opts(GIT_OPT_SET_MWINDOW_MAPPED_LIMIT, size_t):
229231
*
230-
* >Set the maximum amount of memory that can be mapped at any time
231-
* by the library
232+
* > Set the maximum amount of memory that can be mapped at any time
233+
* > by the library
234+
*
235+
* * opts(GIT_OPT_GET_MWINDOW_FILE_LIMIT, size_t *):
236+
*
237+
* > Get the maximum number of files that will be mapped at any time by the
238+
* > library
239+
*
240+
* * opts(GIT_OPT_SET_MWINDOW_FILE_LIMIT, size_t):
241+
*
242+
* > Set the maximum number of files that can be mapped at any time
243+
* > by the library. The default (0) is unlimited.
232244
*
233245
* * opts(GIT_OPT_GET_SEARCH_PATH, int level, git_buf *buf)
234246
*

include/git2/deprecated.h

+42-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@ GIT_EXTERN(int) git_blob_create_fromstream_commit(
102102
GIT_EXTERN(int) git_blob_create_frombuffer(
103103
git_oid *id, git_repository *repo, const void *buffer, size_t len);
104104

105-
/** Deprecated in favor of @see git_blob_filter */
105+
/** Deprecated in favor of `git_blob_filter`.
106+
*
107+
* @deprecated Use git_blob_filter
108+
* @see git_blob_filter
109+
*/
106110
GIT_EXTERN(int) git_blob_filtered_content(
107111
git_buf *out,
108112
git_blob *blob,
@@ -233,7 +237,7 @@ GIT_EXTERN(void) giterr_clear(void);
233237
GIT_EXTERN(void) giterr_set_str(int error_class, const char *string);
234238

235239
/**
236-
* Indicates that an out-of-memory situation occured. This is an alias
240+
* Indicates that an out-of-memory situation occurred. This is an alias
237241
* of `git_error_set_oom` and is preserved for backward compatibility.
238242
*
239243
* This function is deprecated, but there is no plan to remove this
@@ -524,6 +528,42 @@ typedef int GIT_CALLBACK(git_headlist_cb)(git_remote_head *rhead, void *payload)
524528

525529
/**@}*/
526530

531+
/** @name Deprecated String Array Functions
532+
*
533+
* These types are retained for backward compatibility. The newer
534+
* versions of these values should be preferred in all new code.
535+
*
536+
* There is no plan to remove these backward compatibility values at
537+
* this time.
538+
*/
539+
/**@{*/
540+
541+
/**
542+
* Copy a string array object from source to target.
543+
*
544+
* This function is deprecated, but there is no plan to remove this
545+
* function at this time.
546+
*
547+
* @param tgt target
548+
* @param src source
549+
* @return 0 on success, < 0 on allocation failure
550+
*/
551+
GIT_EXTERN(int) git_strarray_copy(git_strarray *tgt, const git_strarray *src);
552+
553+
/**
554+
* Free the memory referred to by the git_strarray. This is an alias of
555+
* `git_strarray_dispose` and is preserved for backward compatibility.
556+
*
557+
* This function is deprecated, but there is no plan to remove this
558+
* function at this time.
559+
*
560+
* @deprecated Use git_strarray_dispose
561+
* @see git_strarray_dispose
562+
*/
563+
GIT_EXTERN(void) git_strarray_free(git_strarray *array);
564+
565+
/**@}*/
566+
527567
/** @name Deprecated Options Initialization Functions
528568
*
529569
* These functions are retained for backward compatibility. The newer

include/git2/errors.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ typedef enum {
107107
GIT_ERROR_PATCH,
108108
GIT_ERROR_WORKTREE,
109109
GIT_ERROR_SHA1,
110-
GIT_ERROR_HTTP
110+
GIT_ERROR_HTTP,
111+
GIT_ERROR_INTERNAL
111112
} git_error_t;
112113

113114
/**

include/git2/index.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,7 @@ GIT_EXTERN(int) git_index_add_bypath(git_index *index, const char *path);
555555
*
556556
* If a previous index entry exists that has the same path as the
557557
* given 'entry', it will be replaced. Otherwise, the 'entry' will be
558-
* added. The `id` and the `file_size` of the 'entry' are updated with the
559-
* real value of the blob.
558+
* added.
560559
*
561560
* This forces the file to be added to the index, not looking
562561
* at gitignore rules. Those rules can be evaluated through

include/git2/pack.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ GIT_EXTERN(int) git_packbuilder_write_buf(git_buf *buf, git_packbuilder *pb);
155155
* Write the new pack and corresponding index file to path.
156156
*
157157
* @param pb The packbuilder
158-
* @param path to the directory where the packfile and index should be stored
158+
* @param path Path to the directory where the packfile and index should be stored, or NULL for default location
159159
* @param mode permissions to use creating a packfile or 0 for defaults
160160
* @param progress_cb function to call with progress information from the indexer (optional)
161161
* @param progress_cb_payload payload for the progress callback (optional)

include/git2/strarray.h

+6-10
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,16 @@ typedef struct git_strarray {
2525
} git_strarray;
2626

2727
/**
28-
* Close a string array object
29-
*
30-
* This method should be called on `git_strarray` objects where the strings
31-
* array is allocated and contains allocated strings, such as what you
32-
* would get from `git_strarray_copy()`. Not doing so, will result in a
33-
* memory leak.
28+
* Free the strings contained in a string array. This method should
29+
* be called on `git_strarray` objects that were provided by the
30+
* library. Not doing so, will result in a memory leak.
3431
*
3532
* This does not free the `git_strarray` itself, since the library will
36-
* never allocate that object directly itself (it is more commonly embedded
37-
* inside another struct or created on the stack).
33+
* never allocate that object directly itself.
3834
*
39-
* @param array git_strarray from which to free string data
35+
* @param array The git_strarray that contains strings to free
4036
*/
41-
GIT_EXTERN(void) git_strarray_free(git_strarray *array);
37+
GIT_EXTERN(void) git_strarray_dispose(git_strarray *array);
4238

4339
/**
4440
* Copy a string array object from source to target.

include/git2/version.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
#ifndef INCLUDE_git_version_h__
88
#define INCLUDE_git_version_h__
99

10-
#define LIBGIT2_VERSION "1.0.0"
10+
#define LIBGIT2_VERSION "1.1.0"
1111
#define LIBGIT2_VER_MAJOR 1
12-
#define LIBGIT2_VER_MINOR 0
12+
#define LIBGIT2_VER_MINOR 1
1313
#define LIBGIT2_VER_REVISION 0
1414
#define LIBGIT2_VER_PATCH 0
1515

16-
#define LIBGIT2_SOVERSION "1.0"
16+
#define LIBGIT2_SOVERSION "1.1"
1717

1818
#endif

lib/i386/libcrypto.a

2.79 KB
Binary file not shown.

lib/i386/libgit2.a

-149 KB
Binary file not shown.

lib/i386/libssh2.a

83 KB
Binary file not shown.

lib/i386/libssl.a

2.37 KB
Binary file not shown.

lib/x64/libcrypto.a

27.6 KB
Binary file not shown.

lib/x64/libgit2.a

-380 KB
Binary file not shown.

lib/x64/libssh2.a

81.7 KB
Binary file not shown.

lib/x64/libssl.a

3.28 KB
Binary file not shown.

0 commit comments

Comments
 (0)