<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/log-tree.c, branch v2.43.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.43.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.43.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2023-12-26T20:04:32Z</updated>
<entry>
<title>line-log.h: remove unnecessary include</title>
<updated>2023-12-26T20:04:32Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2023-12-23T17:14:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a28fe2d9014758e18d870b1086b5a0c2be76d11f'/>
<id>urn:sha1:a28fe2d9014758e18d870b1086b5a0c2be76d11f</id>
<content type='text'>
The unnecessary include in the header transitively pulled in some
other headers actually needed by source files, though.  Have those
source files explicitly include the headers they need.

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>decorate: use commit color for HEAD arrow</title>
<updated>2023-08-21T18:40:10Z</updated>
<author>
<name>Andy Koppe</name>
<email>andy.koppe@gmail.com</email>
</author>
<published>2023-08-20T18:50:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1e63b34a449afd650b02ab19501e8ccf0c15816e'/>
<id>urn:sha1:1e63b34a449afd650b02ab19501e8ccf0c15816e</id>
<content type='text'>
Use the commit color instead of the HEAD color for the arrow or custom
symbol in "HEAD -&gt; branch" decorations, for visual consistency with the
prefix, separator and suffix symbols, which are also colored with the
commit color.

This change was triggered by the possibility that one could choose to
use the same symbol for the pointer and the separator options in
%(decorate), in which case they ought to be the same color.

A related precedent is 'ls -l', where the arrow for symlinks gets the
default color rather than that of the symlink name.

Amend test t4207-log-decoration-colors.sh accordingly.

Signed-off-by: Andy Koppe &lt;andy.koppe@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pretty: add pointer and tag options to %(decorate)</title>
<updated>2023-08-21T18:40:10Z</updated>
<author>
<name>Andy Koppe</name>
<email>andy.koppe@gmail.com</email>
</author>
<published>2023-08-20T18:50:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f1f8a258567268974b9bbd012c33ad219a31aa0e'/>
<id>urn:sha1:f1f8a258567268974b9bbd012c33ad219a31aa0e</id>
<content type='text'>
Add pointer and tag options to %(decorate) format, to allow to override
the " -&gt; " string used to show where HEAD points and the "tag: " string
used to mark tags.

Document in pretty-formats.txt and test in t4205-log-pretty-formats.sh.

Signed-off-by: Andy Koppe &lt;andy.koppe@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>decorate: color each token separately</title>
<updated>2023-08-21T18:40:09Z</updated>
<author>
<name>Andy Koppe</name>
<email>andy.koppe@gmail.com</email>
</author>
<published>2023-08-20T18:50:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dcb347f83780b67ba586fda67a5c494b31354eae'/>
<id>urn:sha1:dcb347f83780b67ba586fda67a5c494b31354eae</id>
<content type='text'>
Wrap "tag:" prefixes and the arrows in "HEAD -&gt; branch" decorations in
their own color sequences. Otherwise, if --graph is used, tag names or
arrows can end up uncolored when %w width formatting breaks a line just
before them. This is because --graph resets the color after doing its
drawing at the start of a line.

Amend test t4207-log-decoration-colors.sh accordingly.

Signed-off-by: Andy Koppe &lt;andy.koppe@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>decorate: avoid some unnecessary color overhead</title>
<updated>2023-08-21T18:40:09Z</updated>
<author>
<name>Andy Koppe</name>
<email>andy.koppe@gmail.com</email>
</author>
<published>2023-08-20T18:50:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b87a9a2c1ef8c39d4fc3d1e28ebb79563d4804be'/>
<id>urn:sha1:b87a9a2c1ef8c39d4fc3d1e28ebb79563d4804be</id>
<content type='text'>
In format_decorations(), don't obtain color sequences if there are no
decorations, and don't emit color sequences around empty strings.

Signed-off-by: Andy Koppe &lt;andy.koppe@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>decorate: refactor format_decorations()</title>
<updated>2023-08-21T18:40:09Z</updated>
<author>
<name>Andy Koppe</name>
<email>andy.koppe@gmail.com</email>
</author>
<published>2023-08-20T18:50:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a3883a6532163f0a53a7b202f32bf8fe565af056'/>
<id>urn:sha1:a3883a6532163f0a53a7b202f32bf8fe565af056</id>
<content type='text'>
Rename the format_decorations_extended function to format_decorations
and drop the format_decorations wrapper macro. Pass the prefix, suffix
and separator strings as a single 'struct format_decorations' pointer
argument instead of separate arguments. Use default values defined in
the function when either the struct pointer or any of the struct fields
are NULL. This is to ease extension with additional options.

Signed-off-by: Andy Koppe &lt;andy.koppe@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'en/header-split-cache-h-part-3'</title>
<updated>2023-06-29T23:43:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2023-06-29T23:43:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a1264a08a1a6e0cd7e510c899cd0ba42dcf1045d'/>
<id>urn:sha1:a1264a08a1a6e0cd7e510c899cd0ba42dcf1045d</id>
<content type='text'>
Header files cleanup.

* en/header-split-cache-h-part-3: (28 commits)
  fsmonitor-ll.h: split this header out of fsmonitor.h
  hash-ll, hashmap: move oidhash() to hash-ll
  object-store-ll.h: split this header out of object-store.h
  khash: name the structs that khash declares
  merge-ll: rename from ll-merge
  git-compat-util.h: remove unneccessary include of wildmatch.h
  builtin.h: remove unneccessary includes
  list-objects-filter-options.h: remove unneccessary include
  diff.h: remove unnecessary include of oidset.h
  repository: remove unnecessary include of path.h
  log-tree: replace include of revision.h with simple forward declaration
  cache.h: remove this no-longer-used header
  read-cache*.h: move declarations for read-cache.c functions from cache.h
  repository.h: move declaration of the_index from cache.h
  merge.h: move declarations for merge.c from cache.h
  diff.h: move declaration for global in diff.c from cache.h
  preload-index.h: move declarations for preload-index.c from elsewhere
  sparse-index.h: move declarations for sparse-index.c from cache.h
  name-hash.h: move declarations for name-hash.c from cache.h
  run-command.h: move declarations for run-command.c from cache.h
  ...
</content>
</entry>
<entry>
<title>Merge branch 'ds/disable-replace-refs'</title>
<updated>2023-06-22T23:29:06Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2023-06-22T23:29:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d9f9f6b358c4d8aad492bc4995be0926048a6248'/>
<id>urn:sha1:d9f9f6b358c4d8aad492bc4995be0926048a6248</id>
<content type='text'>
Introduce a mechanism to disable replace refs globally and per
repository.

* ds/disable-replace-refs:
  repository: create read_replace_refs setting
  replace-objects: create wrapper around setting
  repository: create disable_replace_refs()
</content>
</entry>
<entry>
<title>object-store-ll.h: split this header out of object-store.h</title>
<updated>2023-06-21T20:39:54Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2023-05-16T06:34:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a034e9106ff1a4cb6fcb6f2ea3a1a47b4d2ba173'/>
<id>urn:sha1:a034e9106ff1a4cb6fcb6f2ea3a1a47b4d2ba173</id>
<content type='text'>
The vast majority of files including object-store.h did not need dir.h
nor khash.h.  Split the header into two files, and let most just depend
upon object-store-ll.h, while letting the two callers that need it
depend on the full object-store.h.

After this patch:
    $ git grep -h include..object-store | sort | uniq -c
          2 #include "object-store.h"
        129 #include "object-store-ll.h"

Diff best viewed with `--color-moved`.

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>git-compat-util.h: remove unneccessary include of wildmatch.h</title>
<updated>2023-06-21T20:39:54Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2023-05-16T06:34:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dd77d587954bd798d0ea6b26f0815ed2d78d47b9'/>
<id>urn:sha1:dd77d587954bd798d0ea6b26f0815ed2d78d47b9</id>
<content type='text'>
The include of wildmatch.h in git-compat-util.h was added in cebcab189aa
(Makefile: add USE_WILDMATCH to use wildmatch as fnmatch, 2013-01-01) as
a way to be able to compile-time force any calls to fnmatch() to instead
invoke wildmatch().  The defines and inline function were removed in
70a8fc999d9 (stop using fnmatch (either native or compat), 2014-02-15),
and this include in git-compat-util.h has been unnecessary ever since.

Remove the include from git-compat-util.h, but add it to the .c files
that had omitted the direct #include they needed.

Signed-off-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
