From: "Nguyễn Thái Ngọc Duy" <pclouds@gmail.com>
To: git@vger.kernel.org
Subject: [PATCH 12/12] git-status: print sparse checkout status
Date: Wed, 23 Jul 2008 21:58:10 +0700 [thread overview]
Message-ID: <20080723145810.GA29177@laptop> (raw)
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
wt-status.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/wt-status.c b/wt-status.c
index 889e50f..28add31 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -361,12 +361,18 @@ void wt_status_print(struct wt_status *s)
color_fprintf_ln(s->fp, color(WT_STATUS_HEADER), "#");
color_fprintf_ln(s->fp, color(WT_STATUS_HEADER), "# Initial commit");
color_fprintf_ln(s->fp, color(WT_STATUS_HEADER), "#");
- wt_status_print_initial(s);
}
- else {
- wt_status_print_updated(s);
+
+ if (get_sparse_prefix()) {
+ color_fprintf(s->fp, color(WT_STATUS_HEADER), "# Sparse checkout: ");
+ color_fprintf_ln(s->fp, color(WT_STATUS_HEADER), get_sparse_prefix_str());
}
+ if (s->is_initial)
+ wt_status_print_initial(s);
+ else
+ wt_status_print_updated(s);
+
wt_status_print_changed(s);
if (wt_status_submodule_summary)
wt_status_print_submodule_summary(s);
--
1.5.5.GIT
reply other threads:[~2008-07-23 15:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080723145810.GA29177@laptop \
--to=pclouds@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).