git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
To: Git List <git@vger.kernel.org>
Subject: [PATCH] Added hint about using .gitignore in git status while  printing untracked files
Date: Thu, 18 Feb 2010 15:18:19 +0530	[thread overview]
Message-ID: <e72faaa81002180148k47881f47qdfd5d268e4b2b44@mail.gmail.com> (raw)

Added hint about using .gitignore in git status while printing untracked files
Basically, many users don't come to know about .gitignore functionality in
their starting stages of git and wonder over how to keep the build or doc files
without tracking by git. So, if we add a line saying about gitignore
while printing
help to add untracked files in git status output, it can be very useful

Signed-off-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
---
 wt-status.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/wt-status.c b/wt-status.c
index 5807fc3..f17300f 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -100,6 +100,7 @@ static void
wt_status_print_untracked_header(struct wt_status *s)
 	if (!advice_status_hints)
 		return;
 	color_fprintf_ln(s->fp, c, "#   (use \"git add <file>...\" to
include in what will be committed)");
+	color_fprintf_ln(s->fp, c, "#   (add it's path to .gitignore to
intentionally untrack it)");
 	color_fprintf_ln(s->fp, c, "#");
 }

--

             reply	other threads:[~2010-02-18  9:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-18  9:48 Pavan Kumar Sunkara [this message]
2010-02-18  9:59 ` [PATCH] Added hint about using .gitignore in git status while printing untracked files Peter Krefting
2010-02-18 11:16   ` Michael J Gruber
2010-02-18 11:28     ` Pavan Kumar Sunkara

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=e72faaa81002180148k47881f47qdfd5d268e4b2b44@mail.gmail.com \
    --to=pavan.sss1991@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).