summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 13f3482)
raw | patch | inline | side by side (parent: 13f3482)
author | Dominik Vogt <dominik.vogt@gmx.de> | |
Mon, 29 Oct 2007 13:35:36 +0000 (14:35 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 1 Nov 2007 14:13:28 +0000 (15:13 +0100) |
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
tig.c | patch | blob | history | |
tigrc.5.txt | patch | blob | history |
index fbc65b911894f1a598997ef0728b97f29567ce32..7130943ebc6ae5894585eb04a0b1bf1c450a929c 100644 (file)
--- a/tig.c
+++ b/tig.c
LINE(MAIN_TAG, "", COLOR_MAGENTA, COLOR_DEFAULT, A_BOLD), \
LINE(MAIN_REMOTE, "", COLOR_YELLOW, COLOR_DEFAULT, A_BOLD), \
LINE(MAIN_REF, "", COLOR_CYAN, COLOR_DEFAULT, A_BOLD), \
+LINE(MAIN_REVGRAPH,"", COLOR_MAGENTA, COLOR_DEFAULT, 0), \
LINE(TREE_DIR, "", COLOR_DEFAULT, COLOR_DEFAULT, A_NORMAL), \
LINE(TREE_FILE, "", COLOR_DEFAULT, COLOR_DEFAULT, A_NORMAL), \
LINE(STAT_SECTION, "", COLOR_CYAN, COLOR_DEFAULT, 0), \
@@ -4085,12 +4086,12 @@ main_draw(struct view *view, struct line *line, unsigned int lineno, bool select
}
col += AUTHOR_COLS;
- if (type != LINE_CURSOR)
- wattrset(view->win, A_NORMAL);
if (opt_rev_graph && commit->graph_size) {
size_t i;
+ if (type != LINE_CURSOR)
+ wattrset(view->win, get_line_attr(LINE_MAIN_REVGRAPH));
wmove(view->win, lineno, col);
/* Using waddch() instead of waddnstr() ensures that
* they'll be rendered correctly for the cursor line. */
@@ -4100,6 +4101,8 @@ main_draw(struct view *view, struct line *line, unsigned int lineno, bool select
waddch(view->win, ' ');
col += commit->graph_size + 1;
}
+ if (type != LINE_CURSOR)
+ wattrset(view->win, A_NORMAL);
wmove(view->win, lineno, col);
diff --git a/tigrc.5.txt b/tigrc.5.txt
index d61d02db4ed5116e9483381e21b6fc321ac7ecdc..521880b1051d799edac06008ade61e56e2b3dece 100644 (file)
--- a/tigrc.5.txt
+++ b/tigrc.5.txt
delimiting long author names and labels for tag and branch references.
*main-date*, *main-author*, *main-commit*, *main-delim*, *main-tag*,
-*main-ref*, *main-remote*
+*main-ref*, *main-remote*, *main-revgraph*
--