Skip to content

Commit dc81659

Browse files
authored
Merge pull request libgit2#6979 from libgit2/ethomson/v19
2 parents 800a953 + c536fcb commit dc81659

File tree

4 files changed

+366
-7
lines changed

4 files changed

+366
-7
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
cmake_minimum_required(VERSION 3.5.1)
88

9-
project(libgit2 VERSION "1.8.2" LANGUAGES C)
9+
project(libgit2 VERSION "1.9.0" LANGUAGES C)
1010

1111
# Add find modules to the path
1212
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake")

docs/changelog.md

Lines changed: 359 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,362 @@
1+
v1.9.0
2+
------
3+
4+
This is release v1.9.0, "Schwibbogen". As usual, it contains numerous
5+
bug fixes, compatibility improvements, and new features.
6+
7+
This is expected to be the final release in the libgit2 v1.x lineage.
8+
libgit2 v2.0 is expected to be the next version, with support for
9+
SHA256 moving to "supported" status (out of "experimental" status).
10+
This means that v2.0 will have API and ABI changes to support SHA256.
11+
12+
## Major changes
13+
14+
* **Documentation improvements**
15+
We've launched a new website for our API reference docs at
16+
https://libgit2.org/docs/reference/main/. To support this,
17+
we've updated the documentation to ensure that all APIs are
18+
well-documented, and added docurium-style specifiers to indicate
19+
more depth about the API surface.
20+
21+
We now also publish a JSON blob with the API structure and the
22+
documentation that may be helpful for binding authors.
23+
24+
* **TLS cipher updates**
25+
libgit2 has updated our TLS cipher selection to match the
26+
"compatibility" cipher suite settings as [documented by
27+
Mozilla](https://wiki.mozilla.org/Security/Server_Side_TLS).
28+
29+
* **Blame improvements**
30+
The blame API now contains committer information and commit summaries
31+
for blame hunks, and the ability to get information about the line of
32+
text that was modified. In addition, a CLI blame command has been added
33+
so that the blame functionality can be benchmarked by our benchmark
34+
suite.
35+
36+
* **SONAME changed**
37+
libgit2 will now properly update its SONAME version information when
38+
ABI chnages occur. We hope that by correcting this oversight, users
39+
and distribution vendors, will be able to integrate new versions of
40+
libgit2 more easily.
41+
42+
## Breaking changes
43+
44+
There are several ABI-breaking changes that integrators, particularly
45+
maintainers of bindings or FFI users, may want to be aware of.
46+
47+
* **Blame hunk structure updates** (ABI breaking change)
48+
There are numerous additions to the `git_blame_hunk` structure to
49+
accommodate more information about the blame process.
50+
51+
* **Checkout strategy updates** (ABI breaking change)
52+
The values for `GIT_CHECKOUT_SAFE` and `GIT_CHECKOUT_NONE` have been
53+
updated. `GIT_CHECKOUT_SAFE` is now `0`; this was implicitly the
54+
default value (with the options constructors setting that as the
55+
checkout strategy). It is now the default if the checkout strategy
56+
is set to `0`. This allows for an overall code simplification in the
57+
library.
58+
59+
* **Configuration entry member removal** (ABI breaking change)
60+
The `git_config_entry` structure no longer contains a `free` member;
61+
this was an oversight as end-users should not try to free that
62+
structure.
63+
64+
* **Configuration backend function changes** (ABI breaking change)
65+
`git_config_backend`s should now return `git_config_backend_entry`
66+
objects instead of `git_config_entry` objects. This allows backends
67+
to provide a mechanism to nicely free the configuration entries that
68+
they provide.
69+
70+
## Future Changes
71+
72+
We're preparing for libgit2 v2.0, and this is expected to be
73+
the last feature-release for the libgit2 v1.0 release line. We
74+
will introduce a number of breaking changes in v2.0:
75+
76+
* **SHA256 support**
77+
Adding SHA256 support will change the API and ABI.
78+
79+
* **TLS v1.2 as a minimum**
80+
libgit2 will remove support for HTTPS versions prior to TLS v1.2 and
81+
will update to the "intermediate" settings [documented by
82+
Mozilla](https://wiki.mozilla.org/Security/Server_Side_TLS).
83+
84+
* Removing the chromium zlib built-in
85+
86+
* Removing the libssh2 embedded build system
87+
88+
## What's Changed
89+
90+
### New features
91+
92+
* The `git_signature_default_from_env` API will now produce a pair
93+
of `git_signature`s representing the author, and the committer,
94+
taking the `GIT_AUTHOR_NAME` and `GIT_COMMITTER_NAME` environment
95+
variables into account. Added by @u-quark in
96+
https://github.com/libgit2/libgit2/pull/6706
97+
98+
* packbuilder can now be interrupted from a callback. Added @roberth
99+
in https://github.com/libgit2/libgit2/pull/6874
100+
101+
* libgit2 now claims to honor the `preciousObject` repository extension.
102+
This extension indicates that the client will never delete objects
103+
(in other words, will not garbage collect). libgit2 has no functionality
104+
to remove objects, so it implicitly obeys this in all cases. Added
105+
by @ethomson in https://github.com/libgit2/libgit2/pull/6886
106+
107+
* Push status will be reported even when a push fails. This is useful
108+
to give information from the server about possible updates, even when
109+
the overall status failed. Added by @yerseg in
110+
https://github.com/libgit2/libgit2/pull/6876
111+
112+
* You can now generate a thin pack from a mempack instance using
113+
`git_mempack_write_thin_pack`. Added by @roberth in
114+
https://github.com/libgit2/libgit2/pull/6875
115+
116+
* The new `LIBGIT2_VERSION_CHECK` macro will indicate whether the version
117+
of libgit2 being compiled against is at least the version specified.
118+
For example: `#if LIBGIT2_VERSION_CHECK(1, 6, 3)` is true for libgit2
119+
version 1.6.3 or newer. In addition, the new `LIBGIT2_VERSION_NUMBER`
120+
macro will return an integer version representing the libgit2 version
121+
number. For example, for version 1.6.3, `LIBGIT2_VERSION_NUMBER` will
122+
evaluate to `010603`. Added by @HamedMasafi in
123+
https://github.com/libgit2/libgit2/pull/6882
124+
125+
* Custom X509 certificates can be added to OpenSSL's certificate store
126+
using the `GIT_OPT_ADD_SSL_X509_CERT` option. Added by @yerseg in
127+
https://github.com/libgit2/libgit2/pull/6877
128+
129+
* The libgit2 compatibility CLI now has a `git blame` command. Added by
130+
@ethomson in https://github.com/libgit2/libgit2/pull/6907
131+
132+
* Remote callbacks now provide an `update_refs` callback so that users
133+
can now get the `refspec` of the updated reference during push. This
134+
gives more complete information about the remote reference that was
135+
updated. Added by @ethomson in
136+
https://github.com/libgit2/libgit2/pull/6559
137+
138+
* An optional FIPS-compliant mode for hashing is now available; you
139+
can set `-DUSE_SHA256=OpenSSL-FIPS` to enable it. Added by @marcind-dot
140+
in https://github.com/libgit2/libgit2/pull/6906
141+
142+
* The git-compatible CLI now supports the `git init` command, which has
143+
been useful in identifying API improvements and incompatibilities with
144+
git. Added by @ethomson in https://github.com/libgit2/libgit2/pull/6984
145+
146+
* Consumers can now query more information about how libgit2 was
147+
compiled, and query the "backends" that libgit2 uses. Added by
148+
@ethomson in https://github.com/libgit2/libgit2/pull/6971
149+
150+
### Bug fixes
151+
152+
* Fix constness issue introduced in #6716 by @ethomson in
153+
https://github.com/libgit2/libgit2/pull/6829
154+
* odb: conditional `git_hash_ctx_cleanup` in `git_odb_stream` by
155+
@gensmusic in https://github.com/libgit2/libgit2/pull/6836
156+
* Fix shallow root maintenance during fetch by @kcsaul in
157+
https://github.com/libgit2/libgit2/pull/6846
158+
* Headers cleanup by @anatol in
159+
https://github.com/libgit2/libgit2/pull/6842
160+
* http: Initialize `on_status` when using the http-parser backend by
161+
@civodul in https://github.com/libgit2/libgit2/pull/6870
162+
* Leak in `truncate_racily_clean` in index.c by @lstoppa in
163+
https://github.com/libgit2/libgit2/pull/6884
164+
* ssh: Omit port option from ssh command unless specified in remote url
165+
by @jayong93 in https://github.com/libgit2/libgit2/pull/6845
166+
* diff: print the file header on `GIT_DIFF_FORMAT_PATCH_HEADER` by
167+
@carlosmn in https://github.com/libgit2/libgit2/pull/6888
168+
* Add more robust reporting to SecureTransport errors on macos by
169+
@vcfxb in https://github.com/libgit2/libgit2/pull/6848
170+
* transport: do not filter tags based on ref dir in local by @rindeal
171+
in https://github.com/libgit2/libgit2/pull/6881
172+
* push: handle tags to blobs by @ethomson in
173+
https://github.com/libgit2/libgit2/pull/6898
174+
* Fixes for OpenSSL dynamic by @ethomson in
175+
https://github.com/libgit2/libgit2/pull/6901
176+
* realpath: unbreak build on OpenBSD by @ajacoutot in
177+
https://github.com/libgit2/libgit2/pull/6932
178+
* util/win32: Continue if access is denied when deleting a folder by
179+
@lrm29 in https://github.com/libgit2/libgit2/pull/6929
180+
* object: `git_object_short_id` fails with core.abbrev string values by
181+
@lrm29 in https://github.com/libgit2/libgit2/pull/6944
182+
* Clear data after negotiation by @lrm29 in
183+
https://github.com/libgit2/libgit2/pull/6947
184+
* smart: ignore shallow/unshallow packets during ACK processing by
185+
@kempniu in https://github.com/libgit2/libgit2/pull/6973
186+
187+
### Security fixes
188+
189+
* ssh: Include rsa-sha2-256 and rsa-sha2-512 in the list of hostkey types
190+
by @lrm29 in https://github.com/libgit2/libgit2/pull/6938
191+
* TLS: v1.2 and updated cipher list by @ethomson in
192+
https://github.com/libgit2/libgit2/pull/6960
193+
194+
### Code cleanups
195+
196+
* checkout: make safe checkout the default by @ethomson in
197+
https://github.com/libgit2/libgit2/pull/6037
198+
* url: track whether url explicitly specified a port by @ethomson in
199+
https://github.com/libgit2/libgit2/pull/6851
200+
* config: remove `free` ptr from `git_config_entry` by @ethomson in
201+
https://github.com/libgit2/libgit2/pull/6804
202+
* Add SecCopyErrorMessageString for iOS and update README for iOS by
203+
@Kyle-Ye in https://github.com/libgit2/libgit2/pull/6862
204+
* vector: free is now dispose by @ethomson in
205+
https://github.com/libgit2/libgit2/pull/6896
206+
* hashmap: a libgit2-idiomatic khash by @ethomson in
207+
https://github.com/libgit2/libgit2/pull/6897
208+
* hashmap: asserts by @ethomson in
209+
https://github.com/libgit2/libgit2/pull/6902
210+
* hashmap: further asserts by @ethomson in
211+
https://github.com/libgit2/libgit2/pull/6904
212+
* Make `GIT_WIN32` an internal declaration by @ethomson in
213+
https://github.com/libgit2/libgit2/pull/6940
214+
* pathspec: additional pathspec wildcard tests by @ethomson in
215+
https://github.com/libgit2/libgit2/pull/6959
216+
* repo: don't require option when `template_path` is specified by @ethomson
217+
in https://github.com/libgit2/libgit2/pull/6983
218+
* options: update X509 cert constant by @ethomson in
219+
https://github.com/libgit2/libgit2/pull/6974
220+
* remote: Handle fetching negative refspecs by @ryan-ph in
221+
https://github.com/libgit2/libgit2/pull/6962
222+
* Restore tls v1.0 support temporarily by @ethomson in
223+
https://github.com/libgit2/libgit2/pull/6964
224+
* SHA256 improvements by @ethomson in
225+
https://github.com/libgit2/libgit2/pull/6965
226+
227+
### Benchmarks
228+
229+
* Add benchmarks for blame by @ethomson in
230+
https://github.com/libgit2/libgit2/pull/6920
231+
232+
### Build and CI improvements
233+
234+
* README: add experimental builds to ci table by @ethomson in
235+
https://github.com/libgit2/libgit2/pull/6816
236+
* Update stransport.c by @ethomson in
237+
https://github.com/libgit2/libgit2/pull/6891
238+
* stransport: initialize for iOS by @ethomson in
239+
https://github.com/libgit2/libgit2/pull/6893
240+
* CI updates by @ethomson in
241+
https://github.com/libgit2/libgit2/pull/6895
242+
* Configurable C standard by @ethomson in
243+
https://github.com/libgit2/libgit2/pull/6911
244+
* cmake: update python locator by @ethomson in
245+
https://github.com/libgit2/libgit2/pull/6915
246+
* ci: don't run Windows SHA256 gitdaemon tests by @ethomson in
247+
https://github.com/libgit2/libgit2/pull/6916
248+
* cmake-standard c standards by @ethomson in
249+
https://github.com/libgit2/libgit2/pull/6914
250+
* ci: don't run Windows SHA256 gitdaemon tests by @ethomson in
251+
https://github.com/libgit2/libgit2/pull/6919
252+
* Improve dependency selection in CMake by @ethomson in
253+
https://github.com/libgit2/libgit2/pull/6924
254+
* ci: port latest fixes to nightlies by @ethomson in
255+
https://github.com/libgit2/libgit2/pull/6926
256+
257+
### Documentation improvements
258+
259+
* Fix docs for `git_odb_stream_read` return value. by @ehuss in
260+
https://github.com/libgit2/libgit2/pull/6837
261+
* docs: Add instructions to build examples by @thymusvulgaris in
262+
https://github.com/libgit2/libgit2/pull/6839
263+
* Fix contradictory phrase in SECURITY.md by @Kyle-Ye in
264+
https://github.com/libgit2/libgit2/pull/6859
265+
* Update README.md by @Kyle-Ye in
266+
https://github.com/libgit2/libgit2/pull/6860
267+
* README updates by @ethomson in
268+
https://github.com/libgit2/libgit2/pull/6908
269+
* typo: s/size on bytes/size in bytes/ by @John-Colvin in
270+
https://github.com/libgit2/libgit2/pull/6909
271+
* readme: add OpenSSF best practices badge by @ethomson in
272+
https://github.com/libgit2/libgit2/pull/6925
273+
* Update documentation of `merge_base_many` by @Caleb-T-Owens in
274+
https://github.com/libgit2/libgit2/pull/6927
275+
* Include documentation generator by @ethomson in
276+
https://github.com/libgit2/libgit2/pull/6945
277+
* Update documentation generation workflow by @ethomson in
278+
https://github.com/libgit2/libgit2/pull/6948
279+
* Improve documentation and validate during CI by @ethomson in
280+
https://github.com/libgit2/libgit2/pull/6949
281+
* Add search functionality to our docs generator by @ethomson in
282+
https://github.com/libgit2/libgit2/pull/6953
283+
* Documentation: don't resort versions by @ethomson in
284+
https://github.com/libgit2/libgit2/pull/6954
285+
* Documentation: update `refdb_backend` docs by @ethomson in
286+
https://github.com/libgit2/libgit2/pull/6955
287+
* Documentation: clean up old documentation by @ethomson in
288+
https://github.com/libgit2/libgit2/pull/6957
289+
* docs: remind people about `git_libgit2_init` by @ethomson in
290+
https://github.com/libgit2/libgit2/pull/6958
291+
* Update changelog with v1.8.4 content by @ethomson in
292+
https://github.com/libgit2/libgit2/pull/6961
293+
294+
### Git compatibility fixes
295+
296+
* Limit `.gitattributes` and `.gitignore` files to 100 MiB by @csware in
297+
https://github.com/libgit2/libgit2/pull/6834
298+
* refs: Handle normalizing negative refspecs by @ryan-ph in
299+
https://github.com/libgit2/libgit2/pull/6951
300+
* repo: put a newline on the .git link file by @ethomson in
301+
https://github.com/libgit2/libgit2/pull/6981
302+
303+
### Dependency updates
304+
305+
* zlib: update bundled zlib to v1.3.1 by @ethomson in
306+
https://github.com/libgit2/libgit2/pull/6905
307+
* Update ntlmclient dependency by @ethomson in
308+
https://github.com/libgit2/libgit2/pull/6912
309+
310+
### Other changes
311+
312+
* Create FUNDING.json by @BenJam in
313+
https://github.com/libgit2/libgit2/pull/6853
314+
315+
## New Contributors
316+
317+
* @gensmusic made their first contribution in
318+
https://github.com/libgit2/libgit2/pull/6836
319+
* @u-quark made their first contribution in
320+
https://github.com/libgit2/libgit2/pull/6706
321+
* @thymusvulgaris made their first contribution in
322+
https://github.com/libgit2/libgit2/pull/6839
323+
* @anatol made their first contribution in
324+
https://github.com/libgit2/libgit2/pull/6842
325+
* @BenJam made their first contribution in
326+
https://github.com/libgit2/libgit2/pull/6853
327+
* @Kyle-Ye made their first contribution in
328+
https://github.com/libgit2/libgit2/pull/6859
329+
* @civodul made their first contribution in
330+
https://github.com/libgit2/libgit2/pull/6870
331+
* @lstoppa made their first contribution in
332+
https://github.com/libgit2/libgit2/pull/6884
333+
* @jayong93 made their first contribution in
334+
https://github.com/libgit2/libgit2/pull/6845
335+
* @roberth made their first contribution in
336+
https://github.com/libgit2/libgit2/pull/6874
337+
* @vcfxb made their first contribution in
338+
https://github.com/libgit2/libgit2/pull/6848
339+
* @yerseg made their first contribution in
340+
https://github.com/libgit2/libgit2/pull/6876
341+
* @rindeal made their first contribution in
342+
https://github.com/libgit2/libgit2/pull/6881
343+
* @HamedMasafi made their first contribution in
344+
https://github.com/libgit2/libgit2/pull/6882
345+
* @John-Colvin made their first contribution in
346+
https://github.com/libgit2/libgit2/pull/6909
347+
* @marcind-dot made their first contribution in
348+
https://github.com/libgit2/libgit2/pull/6906
349+
* @ajacoutot made their first contribution in
350+
https://github.com/libgit2/libgit2/pull/6932
351+
* @Caleb-T-Owens made their first contribution in
352+
https://github.com/libgit2/libgit2/pull/6927
353+
* @ryan-ph made their first contribution in
354+
https://github.com/libgit2/libgit2/pull/6951
355+
* @bmarques1995 made their first contribution in
356+
https://github.com/libgit2/libgit2/pull/6840
357+
358+
**Full Changelog**: https://github.com/libgit2/libgit2/compare/v1.8.4...v1.9.0
359+
1360
v1.8.4
2361
------
3362

0 commit comments

Comments
 (0)