<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/howto, branch master</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=master</id>
<link rel='self' href='https://git.shady.money/git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2025-11-06T17:58:56Z</updated>
<entry>
<title>meson: make GIT_HTML_PATH configurable</title>
<updated>2025-11-06T17:58:56Z</updated>
<author>
<name>D. Ben Knoble</name>
<email>ben.knoble+github@gmail.com</email>
</author>
<published>2025-11-04T13:58:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d63417e3ad67e5857cd52f9177fe39719d6ac84a'/>
<id>urn:sha1:d63417e3ad67e5857cd52f9177fe39719d6ac84a</id>
<content type='text'>
Makefile-based builds can configure Git's internal HTML_PATH by defining
htmldir, which is useful for packagers that put documentation in
different locations. Gentoo, for example, uses version-suffixed
directories like ${prefix}/share/doc/git-2.51 and puts the HTML
documentation in an 'html' subdirectory of the same.

Propagate the same configuration knob to Meson-based builds so that
"git --html-path" on such systems can be configured to output the
correct directory.

Signed-off-by: D. Ben Knoble &lt;ben.knoble+github@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>meson: introduce a "docs" alias to compile documentation only</title>
<updated>2025-09-11T16:57:24Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2025-09-11T09:16:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=197f0d0f390ef2f1e573a57c27ed7db8df7a46fd'/>
<id>urn:sha1:197f0d0f390ef2f1e573a57c27ed7db8df7a46fd</id>
<content type='text'>
Meson does not currently provide a target to compile documentation,
only. Instead, users needs to compile the whole project, which may be
way more than they really intend to do.

Introduce a new "docs" alias to plug this gap. This alias can be invoked
e.g. with `meson compile docs`.

Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-zlib: use `struct z_stream_s` instead of typedef</title>
<updated>2025-04-07T21:53:11Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2025-04-07T13:16:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ce76cec964ed1c8ad6c9fcee9fd833c0ec8cccf9'/>
<id>urn:sha1:ce76cec964ed1c8ad6c9fcee9fd833c0ec8cccf9</id>
<content type='text'>
Throughout the Git codebase we're using the typedeffed version of
`z_stream`, which maps to `struct z_stream_s`. By using a typedef
instead of the struct it becomes somewhat harder to predeclare the
symbol so that headers depending on the struct can do so without having
to pull in "zlib-compat.h".

We don't yet have users that would really care about this: the only
users that declare `z_stream` as a pointer are in "reftable/block.h",
which is a header that is internal to the reftable library. But in the
next step we're going to expose the `struct reftable_block` publicly,
and that struct does contain a pointer to `z_stream`. And as the public
header shouldn't depend on "reftable/system.h", which is an internal
implementation detail, we won't have the typedef for `z_stream` readily
available.

Prepare for this change by using `struct z_stream_s` throughout our code
base. In case zlib-ng is used we use a define to map from `z_stream_s`
to `zng_stream_s`.

Drop the pre-declaration of `struct z_stream` while at it. This struct
does not exist in the first place, and the declaration wasn't needed
because "reftable/block.h" already includes "reftable/basics.h" which
transitively includes "reftable/system.h" and thus "git-zlib.h".

Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'tz/doc-txt-to-adoc-fixes'</title>
<updated>2025-03-06T22:06:31Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2025-03-06T22:06:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=62c58891e177bb3860ab19d2dc2e23909759c6ed'/>
<id>urn:sha1:62c58891e177bb3860ab19d2dc2e23909759c6ed</id>
<content type='text'>
Fallouts from recent renaming of documentation files from .txt
suffix to the new .adoc suffix have been corrected.

* tz/doc-txt-to-adoc-fixes: (38 commits)
  xdiff: *.txt -&gt; *.adoc fixes
  unpack-trees.c: *.txt -&gt; *.adoc fixes
  transport.h: *.txt -&gt; *.adoc fixes
  trace2/tr2_sysenv.c: *.txt -&gt; *.adoc fixes
  trace2.h: *.txt -&gt; *.adoc fixes
  t6434: *.txt -&gt; *.adoc fixes
  t6012: *.txt -&gt; *.adoc fixes
  t/helper/test-rot13-filter.c: *.txt -&gt; *.adoc fixes
  simple-ipc.h: *.txt -&gt; *.adoc fixes
  setup.c: *.txt -&gt; *.adoc fixes
  refs.h: *.txt -&gt; *.adoc fixes
  pseudo-merge.h: *.txt -&gt; *.adoc fixes
  parse-options.h: *.txt -&gt; *.adoc fixes
  object-name.c: *.txt -&gt; *.adoc fixes
  list-objects-filter-options.h: *.txt -&gt; *.adoc fixes
  fsck.h: *.txt -&gt; *.adoc fixes
  diffcore.h: *.txt -&gt; *.adoc fixes
  diff.h: *.txt -&gt; *.adoc fixes
  contrib/long-running-filter: *.txt -&gt; *.adoc fixes
  config.c: *.txt -&gt; *.adoc fixes
  ...
</content>
</entry>
<entry>
<title>Merge branch 'pw/build-meson-technical-and-howto-docs'</title>
<updated>2025-03-05T18:37:45Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2025-03-05T18:37:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=22fab08fb88f4d8a4ddf1bd7a28dda13311dd26f'/>
<id>urn:sha1:22fab08fb88f4d8a4ddf1bd7a28dda13311dd26f</id>
<content type='text'>
Meson-based build procedure forgot to build some docs, which has
been corrected.

* pw/build-meson-technical-and-howto-docs:
  meson: fix building technical and howto docs
</content>
</entry>
<entry>
<title>howto/new-command: update reference to builtin docs</title>
<updated>2025-03-03T21:49:20Z</updated>
<author>
<name>Todd Zullinger</name>
<email>tmz@pobox.com</email>
</author>
<published>2025-03-03T20:44:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9100c91cd4c83827b6c3c296e3b2ce89f9e98f52'/>
<id>urn:sha1:9100c91cd4c83827b6c3c296e3b2ce89f9e98f52</id>
<content type='text'>
Commit ec14d4ecb5 (builtin.h: take over documentation from
api-builtin.txt, 2017-08-02) deleted api-builtin.txt and moved the
contents into builtin.h.  Most of the references were fixed in
d85e9448dd (new-command.txt: update reference to builtin docs,
2023-02-04), but one remained.  Fix it.

Signed-off-by: Todd Zullinger &lt;tmz@pobox.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ps/build-meson-fixes-0130'</title>
<updated>2025-03-03T16:53:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2025-03-03T16:53:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ab09eddf601501290b5c719574fbe6c02314631f'/>
<id>urn:sha1:ab09eddf601501290b5c719574fbe6c02314631f</id>
<content type='text'>
Assorted fixes and improvements to the build procedure based on
meson.

* ps/build-meson-fixes-0130:
  gitlab-ci: restrict maximum number of link jobs on Windows
  meson: consistently use custom program paths to resolve programs
  meson: fix overwritten `git` variable
  meson: prevent finding sed(1) in a loop
  meson: improve handling of `sane_tool_path` option
  meson: improve PATH handling
  meson: drop separate version library
  meson: stop linking libcurl into all executables
  meson: introduce `libgit_curl` dependency
  meson: simplify use of the common-main library
  meson: inline the static 'git' library
  meson: fix OpenSSL fallback when not explicitly required
  meson: fix exec path with enabled runtime prefix
</content>
</entry>
<entry>
<title>meson: fix building technical and howto docs</title>
<updated>2025-03-03T16:38:05Z</updated>
<author>
<name>Phillip Wood</name>
<email>phillip.wood@dunelm.org.uk</email>
</author>
<published>2025-03-02T16:02:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=87eccc3a81d133e636150268c24d2220cad70fe5'/>
<id>urn:sha1:87eccc3a81d133e636150268c24d2220cad70fe5</id>
<content type='text'>
When our asciidoc files were renamed from "*.txt" to "*.adoc" in
1f010d6bdf7 (doc: use .adoc extension for AsciiDoc files, 2025-01-20)
the "meson.build" file in "Documentation" was updated but the
"meson.build" files in the "technical" and "howto" subdirectories were
not. This causes the meson build to fail when configured with
-Ddocs=html. Fix this by updating the relevant "meson.build" files.

Signed-off-by: Phillip Wood &lt;phillip.wood@dunelm.org.uk&gt;
Acked-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: update howto-index.sh for .adoc extensions</title>
<updated>2025-03-01T18:00:51Z</updated>
<author>
<name>Todd Zullinger</name>
<email>tmz@pobox.com</email>
</author>
<published>2025-03-01T15:36:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=41c793eae900e632dbc73ec7f900ea1e7d38aa92'/>
<id>urn:sha1:41c793eae900e632dbc73ec7f900ea1e7d38aa92</id>
<content type='text'>
The .txt extensions were changed to .adoc in 1f010d6bdf (doc: use .adoc
extension for AsciiDoc files, 2025-01-20).  This left broken links in
the generated howto-index.html.

Signed-off-by: Todd Zullinger &lt;tmz@pobox.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>meson: prevent finding sed(1) in a loop</title>
<updated>2025-02-26T17:09:36Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2025-02-26T08:22:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=16c89dcf80b742276d927b99fe28dbcde1469417'/>
<id>urn:sha1:16c89dcf80b742276d927b99fe28dbcde1469417</id>
<content type='text'>
We're searching for the sed(1) executable in a loop, which will make us
try to find it multiple times. Starting with the preceding commit we
already declare a variable for that program in the top-level build file.
Use it so that we only need to search for the program once.

Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
