{"thread":{"id":"14630","subject":"[PATCH 12/12] git-status: print sparse checkout status","startedAt":"2008-07-23T14:58:10Z","lastAt":"2008-07-23T14:58:10Z","messageCount":1,"participants":["Nguyễn Thái Ngọc Duy"],"isPatch":true,"patchVersion":1,"patchTotal":12},"messages":[{"id":"84519","messageId":"20080723145810.GA29177@laptop","threadId":"14630","inReplyTo":null,"subject":"[PATCH 12/12] git-status: print sparse checkout status","fromName":"Nguyễn Thái Ngọc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2008-07-23T14:58:10Z","receivedAt":"2008-07-23T14:58:10Z","isPatch":true,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"\nSigned-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>\n---\n wt-status.c |   12 +++++++++---\n 1 files changed, 9 insertions(+), 3 deletions(-)\n\ndiff --git a/wt-status.c b/wt-status.c\nindex 889e50f..28add31 100644\n--- a/wt-status.c\n+++ b/wt-status.c\n@@ -361,12 +361,18 @@ void wt_status_print(struct wt_status *s)\n \t\tcolor_fprintf_ln(s->fp, color(WT_STATUS_HEADER), \"#\");\n \t\tcolor_fprintf_ln(s->fp, color(WT_STATUS_HEADER), \"# Initial commit\");\n \t\tcolor_fprintf_ln(s->fp, color(WT_STATUS_HEADER), \"#\");\n-\t\twt_status_print_initial(s);\n \t}\n-\telse {\n-\t\twt_status_print_updated(s);\n+\n+\tif (get_sparse_prefix()) {\n+\t\tcolor_fprintf(s->fp, color(WT_STATUS_HEADER), \"# Sparse checkout: \");\n+\t\tcolor_fprintf_ln(s->fp, color(WT_STATUS_HEADER), get_sparse_prefix_str());\n \t}\n \n+\tif (s->is_initial)\n+\t\twt_status_print_initial(s);\n+\telse\n+\t\twt_status_print_updated(s);\n+\n \twt_status_print_changed(s);\n \tif (wt_status_submodule_summary)\n \t\twt_status_print_submodule_summary(s);\n-- \n1.5.5.GIT\n"}]}