]> git.proxmox.com Git - libgit2.git/blob - CHANGELOG.md
Merge pull request #2783 from libgit2/cmn/treebuilder-new
[libgit2.git] / CHANGELOG.md
1 v0.21 + 1
2 ------
3
4 * File unlocks are atomic again via rename. Read-only files on Windows are
5 made read-write if necessary.
6
7 * Share open packfiles across repositories to share descriptors and mmaps.
8
9 * Use a map for the treebuilder, making insertion O(1)
10
11 * Introduce reference transactions, which allow multiple references to
12 be locked at the same time and updates be queued. This also allows
13 us to safely update a reflog with arbitrary contents, as we need to
14 do for stash.
15
16 * The index' tree cache is now filled upon read-tree and write-tree
17 and the cache is written to disk.
18
19 * LF -> CRLF filter refuses to handle mixed-EOL files
20
21 * LF -> CRLF filter now runs when * text = auto (with Git for Windows 1.9.4)
22
23 * The git_transport structure definition has moved into the sys/transport.h
24 file.
25
26 * The ssh transport supports asking the remote host for accepted
27 credential types as well as multiple challeges using a single
28 connection. This requires to know which username you want to connect
29 as, so this introduces the USERNAME credential type which the ssh
30 transport will use to ask for the username.
31
32 * The build system now accepts an option EMBED_SSH_PATH which when set
33 tells it to include a copy of libssh2 at the given location. This is
34 enabled for MSVC.
35
36 * libgit2 no longer automatically sets the OpenSSL locking
37 functions. This is not something which we can know to do. A
38 last-resort convenience function is provided in sys/openssl.h,
39 git_openssl_set_locking() which can be used to set the locking.
40
41 * The git_transport_register function no longer takes a priority and takes
42 a URL scheme name (eg "http") instead of a prefix like "http://"
43
44 * The git_remote_set_transport function now sets a transport factory function,
45 rather than a pre-existing transport instance.
46
47 * A factory function for ssh has been added which allows to change the
48 path of the programs to execute for receive-pack and upload-pack on
49 the server, git_transport_ssh_with_paths.
50
51 * git_remote_rename() now takes the repository and the remote's
52 current name. Accepting a remote indicates we want to change it,
53 which we only did partially. It is much clearer if we accept a name
54 and no loaded objects are changed.
55
56 * git_remote_delete() now accepts the repository and the remote's name
57 instead of a loaded remote.
58
59 * git_remote_supported_url() has been removed as it has become
60 essentially useless with rsync-style ssh paths.
61
62 * The git_clone_options struct no longer provides the ignore_cert_errors or
63 remote_name members for remote customization.
64
65 Instead, the git_clone_options struct has two new members, remote_cb and
66 remote_cb_payload, which allow the caller to completely override the remote
67 creation process. If needed, the caller can use this callback to give their
68 remote a name other than the default (origin) or disable cert checking.
69
70 The remote_callbacks member has been preserved for convenience, although it
71 is not used when a remote creation callback is supplied.
72
73 * The git_clone_options struct now provides repository_cb and
74 repository_cb_payload to allow the user to create a repository with
75 custom options.
76
77 * The option to ignore certificate errors via git_remote_cert_check()
78 is no longer present. Instead, git_remote_callbacks has gained a new
79 entry which lets the user perform their own certificate checks.
80
81 * git_clone_into and git_clone_local_into have been removed from the
82 public API in favour of git_clone callbacks
83
84 * Add support for refspecs with the asterisk in the middle of a
85 pattern.
86
87 * Fetching now performs opportunistic updates. To achieve this, we
88 introduce a difference between active and passive refspecs, which
89 make git_remote_download and git_remote_fetch to take a list of
90 resfpecs to be the active list, similarly to how git fetch accepts a
91 list on the command-line.
92
93 * Rename git_remote_load() to git_remote_lookup() to bring it in line
94 with the rest of the lookup functions.
95
96 * git_push_unpack_ok() has been removed and git_push_finish() now
97 returns an error if the unpacking failed.
98
99 * Introduce git_merge_bases() and the git_oidarray type to expose all
100 merge bases between two commits.
101
102 * Introduce git_merge_bases_many() to expose all merge bases between
103 multiple commits.
104
105 * git_merge_head is now git_annotated_commit, to better reflect its usage
106 for multiple functions (including rebase)
107
108 * Introduce rebase functionality (using the merge algorithm only).
109 Introduce git_rebase_init() to begin a new rebase session,
110 git_rebase_open() to open an in-progress rebase session,
111 git_rebase_commit() to commit the current rebase operation,
112 git_rebase_next() to apply the next rebase operation,
113 git_rebase_abort() to abort an in-progress rebase and git_rebase_finish()
114 to complete a rebase operation.
115
116 * Introduce git_note_author() and git_note_committer() to get the author
117 and committer information on a git_note, respectively.
118
119 * git_note_create() has changed the position of the notes reference
120 name to match git_note_remove().
121
122 * The THREADSAFE option to build libgit2 with threading support has
123 been flipped to be on by default.
124
125 * The context_lines and interhunk_lines fields in git_diff_options are
126 now uint32_t instead of uint16_t. This allows to set them to UINT_MAX,
127 in effect asking for "infinite" context e.g. to iterate over all the
128 unmodified lines of a diff.
129
130 * git_status_file now takes an exact path. Use git_status_list_new if
131 pathspec searching is needed.
132
133 * The fetch behavior of remotes with autotag set to GIT_REMOTE_DOWNLOAD_TAGS_ALL
134 has been changed to match git 1.9.0 and later. In this mode, libgit2 now
135 fetches all tags in addition to whatever else needs to be fetched.
136
137 * git_threads_init() and git_threads_shutdown() have been renamed to
138 git_libgit2_init() and git_libgit2_shutdown() to better explain what
139 their purpose is, as it's grown to be more than just about threads.
140
141 * git_libgit2_init() and git_libgit2_shutdown() now return the number of
142 initializations of the library, so consumers may schedule work on the
143 first initialization.
144
145 * git_treebuilder_new (was git_treebuilder_create) now takes a
146 repository so that it can query repository configuration.
147 Subsequently, git_treebuilder_write no longer takes a repository.
148
149 * git_treebuilder_create was renamed to git_treebuilder_new to better
150 reflect it being a constructor rather than something which writes to
151 disk.
152
153 * git_checkout now handles case-changing renames correctly on
154 case-insensitive filesystems; for example renaming "readme" to "README".
155
156 * git_index_name_entrycount() and git_index_reuc_entrycount() now
157 return size_t instead of unsigned int.
158
159 * The search for libssh2 is now done via pkg-config instead of a
160 custom search of a few directories.
161
162 * Add support for core.protectHFS and core.protectNTFS. Add more
163 validation for filenames which we write such as references.
164
165 * The local transport now generates textual progress output like
166 git-upload-pack does ("counting objects").