git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Preparing the graph API for external users
@ 2010-07-13 21:23 Johan Herland
  2010-07-13 21:23 ` [PATCH 1/2] Make graph_next_line() available in the graph.h API Johan Herland
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Johan Herland @ 2010-07-13 21:23 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, johan, Lars Hjemli, nanako3, adam

Hi,

I'm playing around with some CGit patches for enabling an ASCII-art
commit graph to be displayed on CGit's 'log' page. These patches reuse
the ASCII-art commit graph that is produced by 'git log --graph'.

However, in order to allow proper reuse by CGit, I need to make a
couple of changes to the graph API:

The first patch exposes graph_next_line() in the graph.h API. This
function is needed to drive the graph generation from CGit. (Since
the graph_show_* functions print directly to stdout, they can not be
used by CGit.)

The second patch allows CGit to use a different coloring mechanism
than the default ANSI color escapes in graph.c. CGit replaces the
column_colors array of ANSI escapes in graph.c with its own array that
contains HTML <span> tags (which are then styled to the appropriate
colors using CSS).

For reference, the corresponding CGit patches that generate the commit
graph on CGit's log page will follow as a separate patch series.


Johan Herland (2):
  Make graph_next_line() available in the graph.h API
  Enable custom schemes for column colors in the graph API

 graph.c |   50 +++++++++++++++++++++++++++-----------------------
 graph.h |   28 ++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+), 23 deletions(-)

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-07-18 13:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-13 21:23 [PATCH 0/2] Preparing the graph API for external users Johan Herland
2010-07-13 21:23 ` [PATCH 1/2] Make graph_next_line() available in the graph.h API Johan Herland
2010-07-13 21:23 ` [PATCH 2/2] Enable custom schemes for column colors in the graph API Johan Herland
2010-07-13 21:40 ` [CGit RFC/PATCH 0/5] Commit graph on CGit's 'log' view Johan Herland
2010-07-13 22:57   ` Lars Hjemli
2010-07-14  5:59     ` Johan Herland
2010-07-18 13:26       ` Lars Hjemli
2010-07-13 21:40 ` [CGit RFC/PATCH 1/5] ui-stats: Remove unnecessary #include Johan Herland
2010-07-13 21:40 ` [CGit RFC/PATCH 2/5] ui-log: Move 'Age' column to the right of 'Author', like in gitk Johan Herland
2010-07-13 21:40 ` [CGit RFC/PATCH 3/5] ui-log: Refactor display of commit messages Johan Herland
2010-07-13 21:40 ` [CGit RFC/PATCH 4/5] ui-log: Implement support for commit graphs Johan Herland
2010-07-13 21:40 ` [CGit RFC/PATCH 5/5] ui-log: Colorize commit graph Johan Herland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).