* [PATCH] Added hint about using .gitignore in git status while printing untracked files
@ 2010-02-18 9:48 Pavan Kumar Sunkara
2010-02-18 9:59 ` Peter Krefting
0 siblings, 1 reply; 4+ messages in thread
From: Pavan Kumar Sunkara @ 2010-02-18 9:48 UTC (permalink / raw)
To: Git List
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, "#");
}
--
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Added hint about using .gitignore in git status while printing untracked files
2010-02-18 9:48 [PATCH] Added hint about using .gitignore in git status while printing untracked files Pavan Kumar Sunkara
@ 2010-02-18 9:59 ` Peter Krefting
2010-02-18 11:16 ` Michael J Gruber
0 siblings, 1 reply; 4+ messages in thread
From: Peter Krefting @ 2010-02-18 9:59 UTC (permalink / raw)
To: Pavan Kumar Sunkara; +Cc: Git List
Pavan Kumar Sunkara:
> + color_fprintf_ln(s->fp, c, "# (add it's path to .gitignore to
> intentionally untrack it)");
That should be "its", not "it is".
--
\\// Peter - http://www.softwolves.pp.se/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Added hint about using .gitignore in git status while printing untracked files
2010-02-18 9:59 ` Peter Krefting
@ 2010-02-18 11:16 ` Michael J Gruber
2010-02-18 11:28 ` Pavan Kumar Sunkara
0 siblings, 1 reply; 4+ messages in thread
From: Michael J Gruber @ 2010-02-18 11:16 UTC (permalink / raw)
To: Peter Krefting; +Cc: Pavan Kumar Sunkara, Git List
Peter Krefting venit, vidit, dixit 18.02.2010 10:59:
> Pavan Kumar Sunkara:
>
>> + color_fprintf_ln(s->fp, c, "# (add it's path to .gitignore to
>> intentionally untrack it)");
>
> That should be "its", not "it is".
>
Also, an "or" may make things clearer, and "untrack" is wrong: to
untrack is to stop tracking, but this is about untracked files. So, how
about:
---
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, "# (or add its path to .gitignore to
ignore it permanently)");
color_fprintf_ln(s->fp, c, "#");
}
--
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Added hint about using .gitignore in git status while printing untracked files
2010-02-18 11:16 ` Michael J Gruber
@ 2010-02-18 11:28 ` Pavan Kumar Sunkara
0 siblings, 0 replies; 4+ messages in thread
From: Pavan Kumar Sunkara @ 2010-02-18 11:28 UTC (permalink / raw)
To: Michael J Gruber; +Cc: Peter Krefting, Git List
>
> Also, an "or" may make things clearer, and "untrack" is wrong: to
> untrack is to stop tracking, but this is about untracked files. So, how
> about:
>
> ---
> 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, "# (or add its path to .gitignore to
> ignore it permanently)");
> color_fprintf_ln(s->fp, c, "#");
> }
>
> --
>
I Think that is good :)
-pavan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-18 11:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-18 9:48 [PATCH] Added hint about using .gitignore in git status while printing untracked files Pavan Kumar Sunkara
2010-02-18 9:59 ` Peter Krefting
2010-02-18 11:16 ` Michael J Gruber
2010-02-18 11:28 ` Pavan Kumar Sunkara
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).