<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/graph.c, branch v1.6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2009-04-23T02:02:12Z</updated>
<entry>
<title>Fix typos / spelling in comments</title>
<updated>2009-04-23T02:02:12Z</updated>
<author>
<name>Mike Ralphson</name>
<email>mike@abacus.co.uk</email>
</author>
<published>2009-04-17T18:13:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3ea3c215c02dc4a4e7d0881c25b2223540960797'/>
<id>urn:sha1:3ea3c215c02dc4a4e7d0881c25b2223540960797</id>
<content type='text'>
Signed-off-by: Mike Ralphson &lt;mike@abacus.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>graph API: fix a bug in the rendering of octopus merges</title>
<updated>2009-04-23T00:49:56Z</updated>
<author>
<name>Allan Caffee</name>
<email>allan.caffee@gmail.com</email>
</author>
<published>2009-04-22T21:27:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a6c1a3827c934872726bafb35f51f2ad9b9e897f'/>
<id>urn:sha1:a6c1a3827c934872726bafb35f51f2ad9b9e897f</id>
<content type='text'>
An off by one error was causing octopus merges with 3 parents to not be
rendered correctly.  This regression was introduced by 427fc5.

Signed-off-by: Allan Caffee &lt;allan.caffee@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>graph API: fix extra space during pre_commit_line state</title>
<updated>2009-04-23T00:48:42Z</updated>
<author>
<name>Allan Caffee</name>
<email>allan.caffee@gmail.com</email>
</author>
<published>2009-04-22T19:52:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=36a31feae23ac45a130fa38b2934a74e4e7156b4'/>
<id>urn:sha1:36a31feae23ac45a130fa38b2934a74e4e7156b4</id>
<content type='text'>
An extra space is being inserted between the "commit" column and all of
the successive edges.  Remove this space.  This regression was
introduced by 427fc5b.

Signed-off-by: Allan Caffee &lt;allan.caffee@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>graph API: Added logic for colored edges</title>
<updated>2009-04-14T05:41:25Z</updated>
<author>
<name>Allan Caffee</name>
<email>allan.caffee@gmail.com</email>
</author>
<published>2009-04-13T19:53:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=427fc5b8885d269359c8eff187925e3d49f103b4'/>
<id>urn:sha1:427fc5b8885d269359c8eff187925e3d49f103b4</id>
<content type='text'>
Modified the graph drawing logic to colorize edges based on parent-child
relationships similiarly to gitk.

Signed-off-by: Allan Caffee &lt;allan.caffee@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Replace calls to strbuf_init(&amp;foo, 0) with STRBUF_INIT initializer</title>
<updated>2008-10-12T19:36:19Z</updated>
<author>
<name>Brandon Casey</name>
<email>casey@nrlssc.navy.mil</email>
</author>
<published>2008-10-09T19:12:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f285a2d7ed6548666989406de8f0e7233eb84368'/>
<id>urn:sha1:f285a2d7ed6548666989406de8f0e7233eb84368</id>
<content type='text'>
Many call sites use strbuf_init(&amp;foo, 0) to initialize local
strbuf variable "foo" which has not been accessed since its
declaration. These can be replaced with a static initialization
using the STRBUF_INIT macro which is just as readable, saves a
function call, and takes up fewer lines.

Signed-off-by: Brandon Casey &lt;casey@nrlssc.navy.mil&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>graph.c: make many functions static</title>
<updated>2008-09-25T15:00:28Z</updated>
<author>
<name>Nanako Shiraishi</name>
<email>nanako3@lavabit.com</email>
</author>
<published>2008-09-25T09:41:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=064bfbde45e5ad70a5f8a2290ff3fbed0b69f326'/>
<id>urn:sha1:064bfbde45e5ad70a5f8a2290ff3fbed0b69f326</id>
<content type='text'>
These function are not used anywhere.  Also removes graph_release()
that is never called.

Signed-off-by: Nanako Shiraishi &lt;nanako3@lavabit.com&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>git log --graph: print '*' for all commits, including merges</title>
<updated>2008-06-06T18:56:43Z</updated>
<author>
<name>Adam Simpkins</name>
<email>adam@adamsimpkins.net</email>
</author>
<published>2008-06-05T09:28:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=03300c0ac0dfd6098ff65cff518bfffb05ae4194'/>
<id>urn:sha1:03300c0ac0dfd6098ff65cff518bfffb05ae4194</id>
<content type='text'>
Previously, merge commits were printed with 'M' instead of '*'.  This
had the potential to confuse users when not all parents of the merge
commit were included in the log output.

As Junio has pointed out, merge commits can almost always be easily
identified from the log message, anyway.

Signed-off-by: Adam Simpkins &lt;adam@adamsimpkins.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>graph API: fix "git log --graph --first-parent"</title>
<updated>2008-06-06T16:23:09Z</updated>
<author>
<name>Adam Simpkins</name>
<email>adam@adamsimpkins.net</email>
</author>
<published>2008-06-05T08:56:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a0ebe573a516a1530a2c072e513fa7f529781dd0'/>
<id>urn:sha1:a0ebe573a516a1530a2c072e513fa7f529781dd0</id>
<content type='text'>
This change teaches the graph API that only the first parent of each
commit is interesting when "--first-parent" was specified.

This change also consolidates the graph parent walking logic into two
new internal functions, first_interesting_parent() and
next_interesting_parent().  A simpler fix would have been to simply
break at the end of the 2 existing for loops when
graph-&gt;revs-&gt;first_parent_only is set.  However, this change seems
nicer, especially if we ever need to add any new loops over the parent
list in the future.

Signed-off-by: Adam Simpkins &lt;adam@adamsimpkins.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>graph API: avoid printing unnecessary padding before some octopus merges</title>
<updated>2008-06-02T04:44:47Z</updated>
<author>
<name>Adam Simpkins</name>
<email>adam@adamsimpkins.net</email>
</author>
<published>2008-06-01T20:56:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f1979d6b3fba41fb6ca92290bf8e10d58ede8970'/>
<id>urn:sha1:f1979d6b3fba41fb6ca92290bf8e10d58ede8970</id>
<content type='text'>
When an octopus merge is printed, several lines are printed before it to
move over existing branch lines to its right.  This is needed to make
room for the children of the octopus merge.  For example:

| | | |
| |  \ \
| |   \ \
| |    \ \
| M---. \ \
| |\ \ \ \ \

However, this step isn't necessary if there are no branch lines to the
right of the octopus merge.  Therefore, skip this step when it is not
needed, to avoid printing extra lines that don't really serve any
purpose.

Signed-off-by: Adam Simpkins &lt;adam@adamsimpkins.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>graph API: improve display of merge commits</title>
<updated>2008-06-01T21:50:52Z</updated>
<author>
<name>Adam Simpkins</name>
<email>adam@adamsimpkins.net</email>
</author>
<published>2008-06-01T20:56:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3395908ee481e91bbe3ba054a7419b071b09cdef'/>
<id>urn:sha1:3395908ee481e91bbe3ba054a7419b071b09cdef</id>
<content type='text'>
This change improves the way merge commits are displayed, to eliminate a
few visual artifacts.  Previously, merge commits were displayed as:

| M  \
| |\  |

As pointed out by Teemu Likonen, this didn't look nice if the rightmost
branch line was displayed as '\' on the previous line, as it then
appeared to have an extra space in it:

| |\
| M  \
| |\  |

This change updates the code so that branch lines to the right of merge
commits are printed slightly differently depending on how the previous
line was displayed:

| |\          | | |        | |  /
| M \         | M |        | M |
| |\ \        | |\ \       | |\ \

Signed-off-by: Adam Simpkins &lt;adam@adamsimpkins.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
