<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/graph.c, branch v1.7.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.7.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.7.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2010-06-01T01:02:07Z</updated>
<entry>
<title>graph.c: register a callback for graph output</title>
<updated>2010-06-01T01:02:07Z</updated>
<author>
<name>Bo Yang</name>
<email>struggleyb.nku@gmail.com</email>
</author>
<published>2010-05-26T07:23:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b5a4de9d506030fce1b70a06dc49090a46877c3f'/>
<id>urn:sha1:b5a4de9d506030fce1b70a06dc49090a46877c3f</id>
<content type='text'>
It will look better if the 'git log --graph' print
the graph pading lines before the diff output just
like what it does for commit message.
And this patch leverage the new diff prefix callback
function to achieve this.

Signed-off-by: Bo Yang &lt;struggleyb.nku@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add GIT_COLOR_BOLD_* and GIT_COLOR_BG_*</title>
<updated>2010-03-07T19:09:02Z</updated>
<author>
<name>Mark Lodato</name>
<email>lodatom@gmail.com</email>
</author>
<published>2010-03-07T16:52:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=758df17ab07a58e5b0f8effdf2d1b71fe8d79f1d'/>
<id>urn:sha1:758df17ab07a58e5b0f8effdf2d1b71fe8d79f1d</id>
<content type='text'>
Add GIT_COLOR_BOLD_* macros to set both bold and the color in one
sequence.  This saves two characters of output ("ESC [ m", minus ";")
and makes the code more readable.

Add the remaining GIT_COLOR_BG_* macros to make the list complete.
The white and black colors are not included since they look bad on most
terminals.

Signed-off-by: Mark Lodato &lt;lodatom@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'as/maint-graph-interesting-fix'</title>
<updated>2009-08-27T23:59:56Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-08-27T23:59:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=24343c609926e0163c9956b89c010e907fe755ee'/>
<id>urn:sha1:24343c609926e0163c9956b89c010e907fe755ee</id>
<content type='text'>
* as/maint-graph-interesting-fix:
  Add tests for rev-list --graph with options that simplify history
  graph API: fix bug in graph_is_interesting()
</content>
</entry>
<entry>
<title>graph API: fix bug in graph_is_interesting()</title>
<updated>2009-08-21T19:41:25Z</updated>
<author>
<name>Adam Simpkins</name>
<email>simpkins@facebook.com</email>
</author>
<published>2009-08-19T02:34:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=beb5af43a6114b551f14bc13f1beecfe8de930d9'/>
<id>urn:sha1:beb5af43a6114b551f14bc13f1beecfe8de930d9</id>
<content type='text'>
Previously, graph_is_interesting() did not behave quite the same way as
the code in get_revision().  As a result, it would sometimes think
commits were uninteresting, even though get_revision() would return
them.  This resulted in incorrect lines in the graph output.

This change creates a get_commit_action() function, which
graph_is_interesting() and simplify_commit() both now use to determine
if a commit will be shown.  It is identical to the old simplify_commit()
behavior, except that it never calls rewrite_parents().

This problem was reported by Santi Béjar.  The following command
would exhibit the problem before, but now works correctly:

  git log --graph --simplify-by-decoration --oneline v1.6.3.3

Previously git graph did not display the output for this command
correctly between f29ac4f and 66996ec, among other places.

Signed-off-by: Adam Simpkins &lt;simpkins@facebook.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>graph API: use a new color when starting a brand new column</title>
<updated>2009-08-19T06:32:28Z</updated>
<author>
<name>Adam Simpkins</name>
<email>simpkins@facebook.com</email>
</author>
<published>2009-08-18T21:41:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=91e50b2c0a3bfa818454590fcc6a1ef70c3c58d0'/>
<id>urn:sha1:91e50b2c0a3bfa818454590fcc6a1ef70c3c58d0</id>
<content type='text'>
Use a new color for commits that don't have any previously printed
children.  The following command demonstrates the changes:

  git log --graph --pretty=tformat:'%h %s%n' -7 481c7a6 18b0793

Now the two independent lines of development are displayed with
different colors, instead of both using the same color.

Signed-off-by: Adam Simpkins &lt;simpkins@facebook.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>janitor: use NULL and not 0 for pointers.</title>
<updated>2009-07-23T04:57:41Z</updated>
<author>
<name>Pierre Habouzit</name>
<email>madcoder@debian.org</email>
</author>
<published>2009-07-22T21:34:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=67da52bedc5750c10a732b9da7d64d5ef73f3b8a'/>
<id>urn:sha1:67da52bedc5750c10a732b9da7d64d5ef73f3b8a</id>
<content type='text'>
Brought to you thanks to coccinelle:

    ---8&lt;----
    @@
    expression *E;
    @@
    (
      E ==
    - 0
    + NULL
    |
      E !=
    - 0
    + NULL
    |
      E =
    - 0
    + NULL
    )

    @@
    identifier f;
    type T;
    @@
    T *f(...) {
    &lt;...
    - return 0;
    + return NULL;
    ...&gt;
    }
    ---&gt;8----

There are a lot more hits in compat/nedmallox and compat/regex but these
are borrowed code we rather do not want to maintain our own forks for,
and this patch refrains from touching them.

Signed-off-by: Pierre Habouzit &lt;madcoder@debian.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ac/graph-horizontal-line'</title>
<updated>2009-05-18T15:59:30Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-05-18T15:59:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7f1eaec7f477fb3e81b9c5489d9ecf9bbefe0b8c'/>
<id>urn:sha1:7f1eaec7f477fb3e81b9c5489d9ecf9bbefe0b8c</id>
<content type='text'>
* ac/graph-horizontal-line:
  graph API: Use horizontal lines for more compact graphs
</content>
</entry>
<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: Use horizontal lines for more compact graphs</title>
<updated>2009-04-23T01:32:16Z</updated>
<author>
<name>Allan Caffee</name>
<email>allan.caffee@gmail.com</email>
</author>
<published>2009-04-21T12:47:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eaf158f8bd7615562e1fa84711ea465f387a3c9d'/>
<id>urn:sha1:eaf158f8bd7615562e1fa84711ea465f387a3c9d</id>
<content type='text'>
Use horizontal lines instead of long diagonal lines during the
collapsing state of graph rendering.  For example what used to be:

    | | | | |
    | | | |/
    | | |/|
    | |/| |
    |/| | |
    | | | |

is now

    | | | | |
    | |_|_|/
    |/| | |
    | | | |

This results in more compact and legible graphs.

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 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>
</feed>
