Subject: [PATCH 13/25] list-files: new indicator '&' for submodules when -F is used

From: Nguyễn Thái Ngọc Duy <[email-masked]>
Date: Mon, 6 Apr 2015 20:52:22 +0700

Signed-off-by: Nguyễn Thái Ngọc Duy <[email-masked]>
---
 builtin/list-files.c  | 2 ++
 t/t7013-list-files.sh | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/builtin/list-files.c b/builtin/list-files.c
index 31f1f25..7c18848 100644
--- a/builtin/list-files.c
+++ b/builtin/list-files.c
@@ -221,6 +221,8 @@ static void append_indicator(struct strbuf *sb, mode_t mode)
 		c = '|';
 	else if (S_ISSOCK(mode))
 		c = '=';
+	else if (S_ISGITLINK(mode))
+		c = '&';
 #ifdef S_ISDOOR
 	else if (S_ISDOOR(mode))
 		c = '>';
diff --git a/t/t7013-list-files.sh b/t/t7013-list-files.sh
index 16d000e..37dd403 100755
--- a/t/t7013-list-files.sh
+++ b/t/t7013-list-files.sh
@@ -161,7 +161,7 @@ test_expect_success '--classify' '
 	cat >expected <<-\EOF &&
 	dir/
 	file
-	gitlink
+	gitlink&
 	EOF
 	test_cmp expected actual
 	)
-- 
2.3.0.rc1.137.g477eb31