Skip to content

Commit

Permalink
graph API: Added logic for colored edges
Browse files Browse the repository at this point in the history
Modified the graph drawing logic to colorize edges based on parent-child
relationships similiarly to gitk.

Signed-off-by: Allan Caffee <allan.caffee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Allan Caffee authored and Junio C Hamano committed Apr 14, 2009
1 parent f800b65 commit 427fc5b
Show file tree
Hide file tree
Showing 2 changed files with 199 additions and 48 deletions.
1 change: 1 addition & 0 deletions color.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#define GIT_COLOR_GREEN "\033[32m"
#define GIT_COLOR_YELLOW "\033[33m"
#define GIT_COLOR_BLUE "\033[34m"
#define GIT_COLOR_MAGENTA "\033[35m"
#define GIT_COLOR_CYAN "\033[36m"
#define GIT_COLOR_BG_RED "\033[41m"

Expand Down
Loading

0 comments on commit 427fc5b

Please sign in to comment.