Skip to content

Commit 427fc5b

Browse files
allancaffeegitster
authored andcommitted
graph API: Added logic for colored edges
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>
1 parent f800b65 commit 427fc5b

File tree

2 files changed

+199
-48
lines changed

2 files changed

+199
-48
lines changed

color.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#define GIT_COLOR_GREEN "\033[32m"
1212
#define GIT_COLOR_YELLOW "\033[33m"
1313
#define GIT_COLOR_BLUE "\033[34m"
14+
#define GIT_COLOR_MAGENTA "\033[35m"
1415
#define GIT_COLOR_CYAN "\033[36m"
1516
#define GIT_COLOR_BG_RED "\033[41m"
1617

0 commit comments

Comments
 (0)