Subject: [PATCH 2/8] ls_colors.c: a bit of document on print_color_indicator input

From: Nguyễn Thái Ngọc Duy <[email-masked]>
Date: Thu, 20 Mar 2014 17:15:45 +0700

Signed-off-by: Nguyễn Thái Ngọc Duy <[email-masked]>
---
 ls_colors.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ls_colors.c b/ls_colors.c
index 6385446..d492ab3 100644
--- a/ls_colors.c
+++ b/ls_colors.c
@@ -401,6 +401,11 @@ static void put_indicator(const struct bin_str *ind)
 		putchar(*(p++));
 }
 
+/*
+ * mode is only used if stat_ok is true, else filetype is used. if
+ * linkok is -1, shows broken link. If linkok is zero and mode says
+ * it's a link, then show orphan link.
+ */
 void print_color_indicator(const char *name, mode_t mode, int linkok,
 			   int stat_ok, enum filetype filetype)
 {
-- 
1.9.0.40.gaa8c3ea