<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-rev-parse.txt, branch v2.44.4</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.44.4</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.44.4'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-01-02T17:24:48Z</updated>
<entry>
<title>builtin/rev-parse: introduce `--show-ref-format` flag</title>
<updated>2024-01-02T17:24:48Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2023-12-29T07:27:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3c4a5318afb4978a037c83ccd9bbeb870b3f0543'/>
<id>urn:sha1:3c4a5318afb4978a037c83ccd9bbeb870b3f0543</id>
<content type='text'>
Introduce a new `--show-ref-format` to git-rev-parse(1) that causes it
to print the ref format used by a repository.

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>documentation: use clearer prepositions</title>
<updated>2023-10-09T19:06:29Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2023-10-08T06:45:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9a9fd289cc81a3bb69eb2b4e11db27509e0eb515'/>
<id>urn:sha1:9a9fd289cc81a3bb69eb2b4e11db27509e0eb515</id>
<content type='text'>
Diff best viewed with --color-diff.

Signed-off-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>documentation: add missing article</title>
<updated>2023-10-09T19:06:29Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2023-10-08T06:45:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0a4f051f9318c3dd9db69c4bebecdc6d160a5fc6'/>
<id>urn:sha1:0a4f051f9318c3dd9db69c4bebecdc6d160a5fc6</id>
<content type='text'>
Diff best viewed with --color-diff.

Signed-off-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>documentation: employ consistent verb tense for a list</title>
<updated>2023-10-09T19:06:29Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2023-10-08T06:45:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7f7e6bbe06719aa4c6276d5ddf230ba8d6a4d57a'/>
<id>urn:sha1:7f7e6bbe06719aa4c6276d5ddf230ba8d6a4d57a</id>
<content type='text'>
Diff best viewed with --color-diff.

Signed-off-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>documentation: wording improvements</title>
<updated>2023-10-09T19:04:21Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2023-10-08T06:45:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cf6cac20059123d6ec3f867bb3692df62db52cf9'/>
<id>urn:sha1:cf6cac20059123d6ec3f867bb3692df62db52cf9</id>
<content type='text'>
Diff best viewed with --color-diff.

Signed-off-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>parse-options: show negatability of options in short help</title>
<updated>2023-08-07T00:16:50Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2023-08-05T14:40:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e8e5d294dc6e3b6b32132cc8018d01ce35ad0af0'/>
<id>urn:sha1:e8e5d294dc6e3b6b32132cc8018d01ce35ad0af0</id>
<content type='text'>
Add a "[no-]" prefix to options without the flag PARSE_OPT_NONEG to
document the fact that you can negate them.

This looks a bit strange for options that already start with "no-", e.g.
for the option --no-name of git show-branch:

    --[no-]no-name        suppress naming strings

You can actually use --no-no-name as an alias of --name, so the short
help is not wrong.  If we strip off any of the "no-"s, we lose either
the ability to see if the remaining one belongs to the documented
variant or to see if it can be negated.

Signed-off-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t1502, docs: disallow --no-help</title>
<updated>2023-08-07T00:16:50Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2023-08-05T14:37:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aa43619bdf690c8ed44746030552a35244f97af7'/>
<id>urn:sha1:aa43619bdf690c8ed44746030552a35244f97af7</id>
<content type='text'>
"git rev-parse --parseopt" handles the built-in options -h and --help,
but not --no-help.  Make test definitions and documentation examples
more realistic by disabling negation.

Signed-off-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>fetch: support hideRefs to speed up connectivity checks</title>
<updated>2023-02-27T17:27:03Z</updated>
<author>
<name>Eric Wong</name>
<email>e@80x24.org</email>
</author>
<published>2023-02-12T09:04:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c6ce27ab08d30dd9d626d7a56cb928bc5792eb27'/>
<id>urn:sha1:c6ce27ab08d30dd9d626d7a56cb928bc5792eb27</id>
<content type='text'>
With roughly 800 remotes all fetching into their own
refs/remotes/$REMOTE/* island, the connectivity check[1] gets
expensive for each fetch on systems which lack sufficient RAM to
cache objects.

To do a no-op fetch on one $REMOTE out of hundreds, hideRefs now
allows the no-op fetch to take ~30 seconds instead of ~20 minutes
on a noisy, RAM-constrained machine (localhost, so no network latency):

   git -c fetch.hideRefs=refs \
	-c fetch.hideRefs='!refs/remotes/$REMOTE/' \
	fetch $REMOTE

[1] `git rev-list --objects --stdin --not --all --quiet --alternate-refs'

Signed-off-by: Eric Wong &lt;e@80x24.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>rev-parse: add `--exclude-hidden=` option</title>
<updated>2022-11-17T21:22:52Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2022-11-17T05:47:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5ff36c9b6bff6e0607ad50d212762ea019c85380'/>
<id>urn:sha1:5ff36c9b6bff6e0607ad50d212762ea019c85380</id>
<content type='text'>
Add a new `--exclude-hidden=` option that is similar to the one we just
added to git-rev-list(1). Given a section name `uploadpack` or `receive`
as argument, it causes us to exclude all references that would be hidden
by the respective `$section.hideRefs` configuration.

Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Taylor Blau &lt;me@ttaylorr.com&gt;
</content>
</entry>
<entry>
<title>rev-parse: add option for absolute or relative path formatting</title>
<updated>2020-12-13T07:35:51Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2020-12-13T00:25:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fac60b89252e5865da077bb6ccaa9bef43efbfeb'/>
<id>urn:sha1:fac60b89252e5865da077bb6ccaa9bef43efbfeb</id>
<content type='text'>
git rev-parse has several options which print various paths.  Some of
these paths are printed relative to the current working directory, and
some are absolute.

Normally, this is not a problem, but there are times when one wants
paths entirely in one format or another.  This can be done trivially if
the paths are canonical, but canonicalizing paths is not possible on
some shell scripting environments which lack realpath(1) and also in Go,
which lacks functions that properly canonicalize paths on Windows.

To help out the scripter, let's provide an option which turns most of
the paths printed by git rev-parse to be either relative to the current
working directory or absolute and canonical.  Document which options are
affected and which are not so that users are not confused.

This approach is cleaner and tidier than providing duplicates of
existing options which are either relative or absolute.

Note that if the user needs both forms, it is possible to pass an
additional option in the middle of the command line which changes the
behavior of subsequent operations.

Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
