<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/graph.c, branch v2.22.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.22.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.22.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-10-26T05:22:11Z</updated>
<entry>
<title>Merge branch 'np/log-graph-octopus-fix'</title>
<updated>2018-10-26T05:22:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-10-26T05:22:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0ffa31fc36ff27edaccbb565323b95dfab2202f5'/>
<id>urn:sha1:0ffa31fc36ff27edaccbb565323b95dfab2202f5</id>
<content type='text'>
"git log --graph" showing an octopus merge sometimes miscounted the
number of display columns it is consuming to show the merge and its
parent commits, which has been corrected.

* np/log-graph-octopus-fix:
  log: fix coloring of certain octopus merge shapes
</content>
</entry>
<entry>
<title>log: fix coloring of certain octopus merge shapes</title>
<updated>2018-10-12T03:22:48Z</updated>
<author>
<name>Noam Postavsky</name>
<email>npostavs@users.sourceforge.net</email>
</author>
<published>2018-09-02T00:07:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=04005834ed07e0b3a63793f386570c8bcf73f9a3'/>
<id>urn:sha1:04005834ed07e0b3a63793f386570c8bcf73f9a3</id>
<content type='text'>
For octopus merges where the first parent edge immediately merges into
the next column to the left, the number of columns should be one less
than the usual case.

First parent to the left case:

| *-.
| |\ \
|/ / /

The usual case:

| *-.
| |\ \
| | | *

Also refactor the code to iterate over columns rather than dashes,
building from an initial patch suggested by Jeff King.

Signed-off-by: Noam Postavsky &lt;npostavs@users.sourceforge.net&gt;
Reviewed-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>graph: use strbuf_addchars() to add spaces</title>
<updated>2017-10-02T04:14:07Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2017-10-01T14:45:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=38bdf62b738bb93f7e1a6af8058dc31f27c91d4e'/>
<id>urn:sha1:38bdf62b738bb93f7e1a6af8058dc31f27c91d4e</id>
<content type='text'>
strbuf_addf() can be used to add a specific number of space characters
by using the format "%*s" with an empty string and specifying the
desired width.  Use strbuf_addchars() instead as it's shorter, makes the
intent clearer and is a bit more efficient.

Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>config: don't include config.h by default</title>
<updated>2017-06-15T19:56:22Z</updated>
<author>
<name>Brandon Williams</name>
<email>bmwill@google.com</email>
</author>
<published>2017-06-14T18:07:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b2141fc1d20e659810245ec6ca1c143c60e033ec'/>
<id>urn:sha1:b2141fc1d20e659810245ec6ca1c143c60e033ec</id>
<content type='text'>
Stop including config.h by default in cache.h.  Instead only include
config.h in those files which require use of the config system.

Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rs/swap'</title>
<updated>2017-02-15T20:54:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-02-15T20:54:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cbf1860d73b782e7924e63361df485b31225a26a'/>
<id>urn:sha1:cbf1860d73b782e7924e63361df485b31225a26a</id>
<content type='text'>
Code clean-up.

* rs/swap:
  graph: use SWAP macro
  diff: use SWAP macro
  use SWAP macro
  apply: use SWAP macro
  add SWAP macro
</content>
</entry>
<entry>
<title>Merge branch 'nd/log-graph-configurable-colors'</title>
<updated>2017-02-02T21:36:58Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-02-02T21:36:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=85279e86499501be0f046cb9885ad24fbf9d0b8d'/>
<id>urn:sha1:85279e86499501be0f046cb9885ad24fbf9d0b8d</id>
<content type='text'>
Some people feel the default set of colors used by "git log --graph"
rather limiting.  A mechanism to customize the set of colors has
been introduced.

* nd/log-graph-configurable-colors:
  document behavior of empty color name
  color_parse_mem: allow empty color spec
  log --graph: customize the graph lines with config log.graphColors
  color.c: trim leading spaces in color_parse_mem()
  color.c: fix color_parse_mem() with value_len == 0
</content>
</entry>
<entry>
<title>graph: use SWAP macro</title>
<updated>2017-01-30T22:23:12Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2017-01-28T21:42:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9e2edd66dda418dad751d5eb2e5921e05e57cd30'/>
<id>urn:sha1:9e2edd66dda418dad751d5eb2e5921e05e57cd30</id>
<content type='text'>
Exchange the values of graph-&gt;columns and graph-&gt;new_columns using the
macro SWAP instead of hand-rolled code.  The result is shorter and
easier to read.

This transformation was not done by the semantic patch swap.cocci
because there's an unrelated statement between the second and the last
step of the exchange, so it didn't match the expected pattern.

Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>use SWAP macro</title>
<updated>2017-01-30T22:17:00Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2017-01-28T21:40:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=35d803bc9a0d21c36b1381f6e42455beeb73b715'/>
<id>urn:sha1:35d803bc9a0d21c36b1381f6e42455beeb73b715</id>
<content type='text'>
Apply the semantic patch swap.cocci to convert hand-rolled swaps to use
the macro SWAP.  The resulting code is shorter and easier to read, the
object code is effectively unchanged.

The patch for object.c had to be hand-edited in order to preserve the
comment before the change; Coccinelle tried to eat it for some reason.

Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>log --graph: customize the graph lines with config log.graphColors</title>
<updated>2017-01-24T02:32:11Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2017-01-19T11:41:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=73c727d69f47572bf7f21fa31831f9a3fdad944c'/>
<id>urn:sha1:73c727d69f47572bf7f21fa31831f9a3fdad944c</id>
<content type='text'>
If you have a 256 colors terminal (or one with true color support), then
the predefined 12 colors seem limited. On the other hand, you don't want
to draw graph lines with every single color in this mode because the two
colors could look extremely similar. This option allows you to hand pick
the colors you want.

Even with standard terminal, if your background color is neither black
or white, then the graph line may match your background and become
hidden. You can exclude your background color (or simply the colors you
hate) with this.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/graph-padding-fix'</title>
<updated>2016-10-06T21:53:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-10-06T21:53:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cb52426d9af9129c052529c5207fc014c38bd46f'/>
<id>urn:sha1:cb52426d9af9129c052529c5207fc014c38bd46f</id>
<content type='text'>
The "graph" API used in "git log --graph" miscounted the number of
output columns consumed so far when drawing a padding line, which
has been fixed; this did not affect any existing code as nobody
tried to write anything after the padding on such a line, though.

* jk/graph-padding-fix:
  graph: fix extra spaces in graph_padding_line
</content>
</entry>
</feed>
