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

Commit 9cdc8cc

Browse files
committed
Bundle 1.7.0-2 (2023-07-19)
1 parent f6df9f5 commit 9cdc8cc

File tree

207 files changed

+17689
-7639
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+17689
-7639
lines changed

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# libgit2 1.4.2-2
1+
# libgit2 1.7.0-2
22

33
- mingw-w64-i686-zlib-1.2.11-9100-any.pkg.tar.xz
4-
- mingw-w64-i686-openssl-1.1.1.m-9800-any.pkg.tar.xz
5-
- mingw-w64-i686-libssh2-1.11.0-9800-any.pkg.tar.xz
6-
- mingw-w64-i686-libgit2-1.4.2-2-any.pkg.tar.xz
4+
- mingw-w64-i686-openssl-3.1.1-9800-any.pkg.tar.xz
5+
- mingw-w64-i686-libssh2-1.11.0-9801-any.pkg.tar.xz
6+
- mingw-w64-i686-libgit2-1.7.0-2-any.pkg.tar.xz
77
- mingw-w64-x86_64-zlib-1.2.11-9100-any.pkg.tar.xz
8-
- mingw-w64-x86_64-openssl-1.1.1.m-9800-any.pkg.tar.xz
9-
- mingw-w64-x86_64-libssh2-1.11.0-9800-any.pkg.tar.xz
10-
- mingw-w64-x86_64-libgit2-1.4.2-2-any.pkg.tar.xz
8+
- mingw-w64-x86_64-openssl-3.1.1-9800-any.pkg.tar.xz
9+
- mingw-w64-x86_64-libssh2-1.11.0-9801-any.pkg.tar.xz
10+
- mingw-w64-x86_64-libgit2-1.7.0-2-any.pkg.tar.xz
1111
- mingw-w64-ucrt-x86_64-zlib-1.2.11-9100-any.pkg.tar.xz
12-
- mingw-w64-ucrt-x86_64-openssl-1.1.1.m-9800-any.pkg.tar.xz
13-
- mingw-w64-ucrt-x86_64-libssh2-1.11.0-9800-any.pkg.tar.xz
14-
- mingw-w64-ucrt-x86_64-libgit2-1.4.2-2-any.pkg.tar.xz
12+
- mingw-w64-ucrt-x86_64-openssl-3.1.1-9800-any.pkg.tar.xz
13+
- mingw-w64-ucrt-x86_64-libssh2-1.11.0-9801-any.pkg.tar.xz
14+
- mingw-w64-ucrt-x86_64-libgit2-1.7.0-2-any.pkg.tar.xz

include/git2.h

+74-73
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,74 @@
1-
/*
2-
* Copyright (C) the libgit2 contributors. All rights reserved.
3-
*
4-
* This file is part of libgit2, distributed under the GNU GPL v2 with
5-
* a Linking Exception. For full terms see the included COPYING file.
6-
*/
7-
8-
#ifndef INCLUDE_git_git_h__
9-
#define INCLUDE_git_git_h__
10-
11-
#include "git2/annotated_commit.h"
12-
#include "git2/apply.h"
13-
#include "git2/attr.h"
14-
#include "git2/blob.h"
15-
#include "git2/blame.h"
16-
#include "git2/branch.h"
17-
#include "git2/buffer.h"
18-
#include "git2/cert.h"
19-
#include "git2/checkout.h"
20-
#include "git2/cherrypick.h"
21-
#include "git2/clone.h"
22-
#include "git2/commit.h"
23-
#include "git2/common.h"
24-
#include "git2/config.h"
25-
#include "git2/credential.h"
26-
#include "git2/deprecated.h"
27-
#include "git2/describe.h"
28-
#include "git2/diff.h"
29-
#include "git2/email.h"
30-
#include "git2/errors.h"
31-
#include "git2/filter.h"
32-
#include "git2/global.h"
33-
#include "git2/graph.h"
34-
#include "git2/ignore.h"
35-
#include "git2/index.h"
36-
#include "git2/indexer.h"
37-
#include "git2/mailmap.h"
38-
#include "git2/merge.h"
39-
#include "git2/message.h"
40-
#include "git2/net.h"
41-
#include "git2/notes.h"
42-
#include "git2/object.h"
43-
#include "git2/odb.h"
44-
#include "git2/odb_backend.h"
45-
#include "git2/oid.h"
46-
#include "git2/pack.h"
47-
#include "git2/patch.h"
48-
#include "git2/pathspec.h"
49-
#include "git2/proxy.h"
50-
#include "git2/rebase.h"
51-
#include "git2/refdb.h"
52-
#include "git2/reflog.h"
53-
#include "git2/refs.h"
54-
#include "git2/refspec.h"
55-
#include "git2/remote.h"
56-
#include "git2/repository.h"
57-
#include "git2/reset.h"
58-
#include "git2/revert.h"
59-
#include "git2/revparse.h"
60-
#include "git2/revwalk.h"
61-
#include "git2/signature.h"
62-
#include "git2/stash.h"
63-
#include "git2/status.h"
64-
#include "git2/submodule.h"
65-
#include "git2/tag.h"
66-
#include "git2/transport.h"
67-
#include "git2/transaction.h"
68-
#include "git2/tree.h"
69-
#include "git2/types.h"
70-
#include "git2/version.h"
71-
#include "git2/worktree.h"
72-
73-
#endif
1+
/*
2+
* Copyright (C) the libgit2 contributors. All rights reserved.
3+
*
4+
* This file is part of libgit2, distributed under the GNU GPL v2 with
5+
* a Linking Exception. For full terms see the included COPYING file.
6+
*/
7+
8+
#ifndef INCLUDE_git_git_h__
9+
#define INCLUDE_git_git_h__
10+
11+
#include "git2/annotated_commit.h"
12+
#include "git2/apply.h"
13+
#include "git2/attr.h"
14+
#include "git2/blob.h"
15+
#include "git2/blame.h"
16+
#include "git2/branch.h"
17+
#include "git2/buffer.h"
18+
#include "git2/cert.h"
19+
#include "git2/checkout.h"
20+
#include "git2/cherrypick.h"
21+
#include "git2/clone.h"
22+
#include "git2/commit.h"
23+
#include "git2/common.h"
24+
#include "git2/config.h"
25+
#include "git2/credential.h"
26+
#include "git2/deprecated.h"
27+
#include "git2/describe.h"
28+
#include "git2/diff.h"
29+
#include "git2/email.h"
30+
#include "git2/errors.h"
31+
#include "git2/experimental.h"
32+
#include "git2/filter.h"
33+
#include "git2/global.h"
34+
#include "git2/graph.h"
35+
#include "git2/ignore.h"
36+
#include "git2/index.h"
37+
#include "git2/indexer.h"
38+
#include "git2/mailmap.h"
39+
#include "git2/merge.h"
40+
#include "git2/message.h"
41+
#include "git2/net.h"
42+
#include "git2/notes.h"
43+
#include "git2/object.h"
44+
#include "git2/odb.h"
45+
#include "git2/odb_backend.h"
46+
#include "git2/oid.h"
47+
#include "git2/pack.h"
48+
#include "git2/patch.h"
49+
#include "git2/pathspec.h"
50+
#include "git2/proxy.h"
51+
#include "git2/rebase.h"
52+
#include "git2/refdb.h"
53+
#include "git2/reflog.h"
54+
#include "git2/refs.h"
55+
#include "git2/refspec.h"
56+
#include "git2/remote.h"
57+
#include "git2/repository.h"
58+
#include "git2/reset.h"
59+
#include "git2/revert.h"
60+
#include "git2/revparse.h"
61+
#include "git2/revwalk.h"
62+
#include "git2/signature.h"
63+
#include "git2/stash.h"
64+
#include "git2/status.h"
65+
#include "git2/submodule.h"
66+
#include "git2/tag.h"
67+
#include "git2/transport.h"
68+
#include "git2/transaction.h"
69+
#include "git2/tree.h"
70+
#include "git2/types.h"
71+
#include "git2/version.h"
72+
#include "git2/worktree.h"
73+
74+
#endif

include/git2/branch.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ GIT_EXTERN(void) git_branch_iterator_free(git_branch_iterator *iter);
129129
* See `git_tag_create()` for rules about valid names.
130130
*
131131
* Note that if the move succeeds, the old reference object will not
132-
+ be valid anymore, and should be freed immediately by the user using
133-
+ `git_reference_free()`.
132+
* be valid anymore, and should be freed immediately by the user using
133+
* `git_reference_free()`.
134134
*
135135
* @param out New reference object for the updated name.
136136
*

include/git2/common.h

+59-6
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,6 @@ GIT_BEGIN_DECL
105105
*/
106106
#define GIT_PATH_MAX 4096
107107

108-
/**
109-
* The string representation of the null object ID.
110-
*/
111-
#define GIT_OID_HEX_ZERO "0000000000000000000000000000000000000000"
112-
113108
/**
114109
* Return the version of the libgit2 library
115110
* being currently used.
@@ -121,6 +116,17 @@ GIT_BEGIN_DECL
121116
*/
122117
GIT_EXTERN(int) git_libgit2_version(int *major, int *minor, int *rev);
123118

119+
/**
120+
* Return the prerelease state of the libgit2 library currently being
121+
* used. For nightly builds during active development, this will be
122+
* "alpha". Releases may have a "beta" or release candidate ("rc1",
123+
* "rc2", etc) prerelease. For a final release, this function returns
124+
* NULL.
125+
*
126+
* @return the name of the prerelease state or NULL
127+
*/
128+
GIT_EXTERN(const char *) git_libgit2_prerelease(void);
129+
124130
/**
125131
* Combinations of these values describe the features with which libgit2
126132
* was compiled
@@ -214,7 +220,15 @@ typedef enum {
214220
GIT_OPT_SET_ODB_PACKED_PRIORITY,
215221
GIT_OPT_SET_ODB_LOOSE_PRIORITY,
216222
GIT_OPT_GET_EXTENSIONS,
217-
GIT_OPT_SET_EXTENSIONS
223+
GIT_OPT_SET_EXTENSIONS,
224+
GIT_OPT_GET_OWNER_VALIDATION,
225+
GIT_OPT_SET_OWNER_VALIDATION,
226+
GIT_OPT_GET_HOMEDIR,
227+
GIT_OPT_SET_HOMEDIR,
228+
GIT_OPT_SET_SERVER_CONNECT_TIMEOUT,
229+
GIT_OPT_GET_SERVER_CONNECT_TIMEOUT,
230+
GIT_OPT_SET_SERVER_TIMEOUT,
231+
GIT_OPT_GET_SERVER_TIMEOUT
218232
} git_libgit2_opt_t;
219233

220234
/**
@@ -452,6 +466,45 @@ typedef enum {
452466
* > to support repositories with the `noop` extension but does want
453467
* > to support repositories with the `newext` extension.
454468
*
469+
* opts(GIT_OPT_GET_OWNER_VALIDATION, int *enabled)
470+
* > Gets the owner validation setting for repository
471+
* > directories.
472+
*
473+
* opts(GIT_OPT_SET_OWNER_VALIDATION, int enabled)
474+
* > Set that repository directories should be owned by the current
475+
* > user. The default is to validate ownership.
476+
*
477+
* opts(GIT_OPT_GET_HOMEDIR, git_buf *out)
478+
* > Gets the current user's home directory, as it will be used
479+
* > for file lookups. The path is written to the `out` buffer.
480+
*
481+
* opts(GIT_OPT_SET_HOMEDIR, const char *path)
482+
* > Sets the directory used as the current user's home directory,
483+
* > for file lookups.
484+
* >
485+
* > - `path` directory of home directory.
486+
*
487+
* opts(GIT_OPT_GET_SERVER_CONNECT_TIMEOUT, int *timeout)
488+
* > Gets the timeout (in milliseconds) to attempt connections to
489+
* > a remote server.
490+
*
491+
* opts(GIT_OPT_SET_SERVER_CONNECT_TIMEOUT, int timeout)
492+
* > Sets the timeout (in milliseconds) to attempt connections to
493+
* > a remote server. This is supported only for HTTP(S) connections
494+
* > and is not supported by SSH. Set to 0 to use the system default.
495+
* > Note that this may not be able to be configured longer than the
496+
* > system default, typically 75 seconds.
497+
*
498+
* opts(GIT_OPT_GET_SERVER_TIMEOUT, int *timeout)
499+
* > Gets the timeout (in milliseconds) for reading from and writing
500+
* > to a remote server.
501+
*
502+
* opts(GIT_OPT_SET_SERVER_TIMEOUT, int timeout)
503+
* > Sets the timeout (in milliseconds) for reading from and writing
504+
* > to a remote server. This is supported only for HTTP(S)
505+
* > connections and is not supported by SSH. Set to 0 to use the
506+
* > system default.
507+
*
455508
* @param option Option key
456509
* @param ... value to set the option
457510
* @return 0 on success, <0 on failure

include/git2/config.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ typedef struct {
122122
* global configuration file.
123123
*
124124
* This method will not guess the path to the xdg compatible
125-
* config file (.config/git/config).
125+
* config file (`.config/git/config`).
126126
*
127127
* @param out Pointer to a user-allocated git_buf in which to store the path
128128
* @return 0 if a global configuration file has been found. Its path will be stored in `out`.
@@ -149,8 +149,8 @@ GIT_EXTERN(int) git_config_find_xdg(git_buf *out);
149149
/**
150150
* Locate the path to the system configuration file
151151
*
152-
* If /etc/gitconfig doesn't exist, it will look for
153-
* %PROGRAMFILES%\Git\etc\gitconfig.
152+
* If `/etc/gitconfig` doesn't exist, it will look for
153+
* `%PROGRAMFILES%\Git\etc\gitconfig`.
154154
*
155155
* @param out Pointer to a user-allocated git_buf in which to store the path
156156
* @return 0 if a system configuration file has been
@@ -161,7 +161,7 @@ GIT_EXTERN(int) git_config_find_system(git_buf *out);
161161
/**
162162
* Locate the path to the configuration file in ProgramData
163163
*
164-
* Look for the file in %PROGRAMDATA%\Git\config used by portable git.
164+
* Look for the file in `%PROGRAMDATA%\Git\config` used by portable git.
165165
*
166166
* @param out Pointer to a user-allocated git_buf in which to store the path
167167
* @return 0 if a ProgramData configuration file has been
@@ -449,8 +449,8 @@ GIT_EXTERN(int) git_config_multivar_iterator_new(git_config_iterator **out, cons
449449
/**
450450
* Return the current entry and advance the iterator
451451
*
452-
* The pointers returned by this function are valid until the iterator
453-
* is freed.
452+
* The pointers returned by this function are valid until the next call
453+
* to `git_config_next` or until the iterator is freed.
454454
*
455455
* @param entry pointer to store the entry
456456
* @param iter the iterator

include/git2/deprecated.h

+8
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,8 @@ GIT_EXTERN(int) git_diff_format_email_options_init(
436436
#define GITERR_WORKTREE GIT_ERROR_WORKTREE
437437
#define GITERR_SHA1 GIT_ERROR_SHA1
438438

439+
#define GIT_ERROR_SHA1 GIT_ERROR_SHA
440+
439441
/**
440442
* Return the last `git_error` object that was generated for the
441443
* current thread. This is an alias of `git_error_last` and is
@@ -775,6 +777,12 @@ typedef git_trace_cb git_trace_callback;
775777
*/
776778
/**@{*/
777779

780+
#ifndef GIT_EXPERIMENTAL_SHA256
781+
# define GIT_OID_RAWSZ GIT_OID_SHA1_SIZE
782+
# define GIT_OID_HEXSZ GIT_OID_SHA1_HEXSIZE
783+
# define GIT_OID_HEX_ZERO GIT_OID_SHA1_HEXZERO
784+
#endif
785+
778786
GIT_EXTERN(int) git_oid_iszero(const git_oid *id);
779787

780788
/**@}*/

0 commit comments

Comments
 (0)