Commit Graph

68 Commits

Author SHA1 Message Date
Nicolas Cavallari
a2cd66be8a docs: stop mentioning libgit2's "master" branch
The name of libgit2's main branch is now "main" but contributing.md and
release.md still reference "master" as the main branch.  Fix it.
2021-06-23 17:47:12 +02:00
Etienne Samson
a25cba2c0f docs: fix incorrect comment marker 2021-05-27 10:01:55 +02:00
Edward Thomson
78abfb172b docs: document core.longpaths support 2021-04-14 23:02:51 +01:00
Edward Thomson
8aed4629b1 cmake: rename MSVC_CRTDBG to WIN32_LEAKCHECK 2020-11-21 21:54:13 +00:00
Edward Thomson
8b0c7d7cdf changelog: include new reference validity functions 2020-10-25 16:38:45 +00:00
Edward Thomson
699fd71ab1 changelog: document changes since v1.1 2020-10-12 12:03:07 +01:00
Patrick Steinhardt
ffb6a5766d docs: add documentation for our coding style
For years, we've repeatedly had confusion about what our actual coding
style is not only for newcomers, but also across the core contributors.
This can mostly be attributed to the fact that we do not have any coding
conventions written down. This is now a thing of the past with the
introduction of a new document that gives an initial overview of our
style and most important best practices for both our C codebase as well
as for CMake.

While the proposed coding style for our C codebase should be rather
uncontroversial, the coding style for CMake might be. This can be
attributed to multiple facts. First, the CMake code base doesn't really
have any uniform coding style and is quite outdated in a lot of places.
Second, the proposed coding style actually breaks with our existing one:
we currently use all-uppercase function names and variables, but the
documented coding style says we use all-lowercase function names but
all-uppercase variables.

It's common practice in CMake to write variables in all upper-case, and
in fact all variables made available by CMake are exactly that. As
variables are case-sensitive in CMake, we cannot and shouldn't break
with this. In contrast, function calls are case insensitive, and modern
CMake always uses all-lowercase ones. I argue we should do the same to
get in line with other codebases and to reduce the likelihood of
repetitive strain injuries.

So especially for CMake, the proposed coding style says something we
don't have yet. I'm fine with that, as the document explicitly says that
it's what we want to have and not what we have right now.
2020-04-05 19:46:08 +02:00
Patrick Steinhardt
f79027bdc5 docs: update changelog for v1.0 2020-03-28 18:00:00 +01:00
Edward Thomson
a552c103f2 docs: update changelog for v0.99
Give the release a name, "Torschlusspanik" (the fear that time is
running out to act).  Indeed, the time is running out for changes to be
included in v1.0.
2020-02-19 11:02:45 +01:00
lhchavez
795a5b2cdf fuzzers: Fix the documentation
Some of the commands are now out of date.
2020-02-15 04:32:05 +00:00
Patrick Steinhardt
3e6a904521 Merge pull request #5320 from josharian/minor-docs
Minor doc improvements
2019-12-13 08:53:51 +01:00
Patrick Steinhardt
b8b8eee359 changelog: document security fixes 2019-12-10 13:49:57 +01:00
Josh Bleecher Snyder
611e5d2837 changelog: add more newly-accepted urls
I encountered some problematic URLs,
and was delighted to see that they were already fixed.
I figured I may as well add them to the changelog.

For the record, URLs with no path used to be rejected.
That is arguably correct, but command line git accepts them.

URLs with a path of / and a non-standard port
used to have their port completely ignored!
2019-12-04 14:36:41 -08:00
Edward Thomson
ea702a0bc1 release.md: note that we do two security releases
Note that for security releases, we update the two most recent major release branches.
2019-12-04 14:25:36 +11:00
Etienne Samson
8bf0f7eb26 cred: separate public interface from low-level details 2019-09-13 16:54:40 +02:00
Edward Thomson
df3f18acf0 changelog: include security updates 2019-08-13 17:56:06 +01:00
Etienne Samson
94fc83b6d7 cmake: Modulize our TLS & hash detection
The interactions between `USE_HTTPS` and `SHA1_BACKEND` have been
streamlined. Previously we would have accepted not quite working
configurations (like, `-DUSE_HTTPS=OFF -DSHA1_BACKEND=OpenSSL`) and, as
the OpenSSL detection only ran with `USE_HTTPS`, the link would fail.

The detection was moved to a new `USE_SHA1`, modeled after `USE_HTTPS`,
which takes the values "CollisionDetection/Backend/Generic", to better
match how the "hashing backend" is selected, the default (ON) being
"CollisionDetection".

Note that, as `SHA1_BACKEND` is still used internally, you might need to
check what customization you're using it for.
2019-06-14 12:07:00 +02:00
Edward Thomson
fb529a01bf http-parser: use our bundled http-parser by default
Our bundled http-parser includes bugfixes, therefore we should prefer
our http-parser until such time as we can identify that the system
http-parser has these bugfixes (using a version check).

Since these bugs are - at present - minor, retain the ability for users
to force that they want to use the system http-parser anyway.  This does
change the cmake specification so that people _must_ opt-in to the new
behavior knowingly.
2019-06-13 21:24:11 +01:00
Edward Thomson
02ab4841b9 threading: clarify openssl default vs mbedtls 2019-02-27 10:08:15 +00:00
Edward Thomson
358a3b9c38 threading: clarify concurrency of access 2019-02-27 10:08:00 +00:00
Etienne Samson
582d036dfb Update threading.md 2019-02-07 18:47:45 +01:00
Edward Thomson
63f96cd063 changelog: this is 0.28 2019-01-31 19:09:42 +00:00
Etienne Samson
2964fed0c5 docs: document GIT_EUSER/GIT_EPASSTHROUGH 2019-01-28 13:05:52 +01:00
Edward Thomson
826d9a4de8 Merge pull request #4858 from tiennou/fix/index-ext-read
index: preserve extension parsing errors
2019-01-25 09:43:20 +00:00
Edward Thomson
769e92749b deprecation: update changelog to reflect new policies 2019-01-25 09:06:50 +00:00
Etienne Samson
0bf7e0433d index: preserve extension parsing errors
Previously, we would clobber any extension-specific error message with
an "extension is truncated" message. This makes `read_extension`
correctly preserve those errors, takes responsibility for truncation
errors, and adds a new message with the actual extension signature for
unsupported mandatory extensions.
2019-01-24 12:12:04 +01:00
Edward Thomson
a27a4de6f8 errors: update docs for giterr changes 2019-01-22 22:30:37 +00:00
Edward Thomson
38e61797b5 changelog: document that we always build cdecl 2019-01-17 21:18:14 +00:00
Edward Thomson
6a0e94572b changelog: document git_merge_analysis_for_ref 2019-01-17 20:14:46 +00:00
Edward Thomson
35be7f1f28 changelog: document openssl fixes 2019-01-17 20:14:46 +00:00
Edward Thomson
85feb28a1b changelog: document core.logallrefupdates=always 2019-01-17 20:14:46 +00:00
Edward Thomson
a6e5d46bb1 fixup! changelog: document changes since 0.27 2019-01-17 20:14:46 +00:00
Edward Thomson
1bb03f7ac1 changelog: document changes since 0.27 2019-01-17 20:14:46 +00:00
Carlos Martín Nieto
69cd414198 docs: fix transparent/opaque confusion in the conventions file 2018-10-19 16:30:43 +02:00
Edward Thomson
db17b31baa Merge pull request #4789 from pks-t/pks/licensing
docs: clarify and include licenses of dependencies
2018-09-06 19:22:30 +01:00
Patrick Steinhardt
2e0f926e1c docs: clarify and include licenses of dependencies
While our contribution guide tries to make clear the licenses that apply
to libgit2, it does not make clear that different licenses apply to our
bundled dependencies. Make this clear by listing each dependency
together with the licenses that they are governed by. Furthermore,
bundle the complete license texts next to the code they apply to.
2018-08-30 12:16:59 +02:00
Johan Abildskov
c0b2e5256c Add two words to clarify 2018-08-27 09:23:02 +02:00
Johan Abildskov
73e31f6f70 Rephrase wording on giterr_last documentation 2018-08-20 12:08:50 +02:00
Johan Abildskov
3602b57328 Document giterr_last() use only after error. #4772 2018-08-20 10:12:00 +02:00
Patrick Steinhardt
12804c4600 cmake: remove USE_SANITIZER and USE_COVERAGE options
Both the USE_SANITIZER and USE_COVERAGE options are convenience options
that turn on a set of CFLAGS. Despite our own set of CFLAGS required to
build libgit2, we have no real business to mess with them, though, as
they can easily be passed in by the user via specifying the CFLAGS
environment variable. The reasoning behind not providing them is that as
soon as we start adding those for some usecases, users might ask for
other sets of CFLAGS catering to their specific need in another usecase.
Thus, we do not want to support them here.
2018-08-03 09:50:35 +02:00
Patrick Steinhardt
bf3382d544 cmake: remove need to add "-fsanitize=fuzzer" flag for fuzzers
Right now, users are being instrucded to add the
"-DCMAKE_EXE_LINKER_FLAGS=-fsanitize=fuzzer" flag when they want to
build our fuzzers. This is error-prone and user unfriendly. Instead,
just add the flag to our fuzzers' build instructions so that it happens
automatically. Adjust the README accordingly.
2018-08-03 09:50:35 +02:00
Patrick Steinhardt
ad087303df fuzzers: move readme to docs/fuzzing.md 2018-08-03 09:50:35 +02:00
Edward Thomson
243d40df23 docs: add unsaved index safety to changelog 2018-06-29 14:54:29 +01:00
Patrick Steinhardt
0bfe5f781d docs: fix statement about tab width
The libgit2 project mostly follows the coding style of git and thus
the linux project. While those two projects use a recommended tab width
of eight spaces, we instruct users to set their editor's tab width to
four spaces. Fix this to say eight instead.
2018-06-12 10:42:53 +02:00
Edward Thomson
f81923efbe Merge branch 'pks/docs-improvements' 2018-06-09 18:31:57 +01:00
Edward Thomson
8a2de3538c Merge branch 'compat/clibs' 2018-06-09 18:25:46 +01:00
Edward Thomson
5e53f216dc docs: update release steps to include clib manifest
We've introduced a manifest for the clib version system that includes a
version number; we should update it at release time to correspond with
the version number in the header.
2018-06-09 18:24:27 +01:00
Patrick Steinhardt
68a3c0b124 docs: reorganize documents
Our non-technical documents are currently floating around loosely in our
project's root, making it harden than necessary to discover what one is
searching for. We do have a "docs/" directory, though, which serves
exactly that purpose of hosting documentation.

Move our non-technical documentation into the "docs/" directory. Adjust
all links to these documents.
2018-05-30 11:11:07 +02:00
Jason Haslam
d54c34a77a docs: added note regarding difference in treatment of junction points from git 2018-05-21 17:04:11 -06:00
Carson Howard
77799325f4 docs: update differences-from-git to be more concise 2018-05-02 07:46:53 -07:00