git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Added hint about using .gitignore in git status while printing untracked files

From
Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
Date
Feb 18, 2010, 11:28 UTC
Message-ID
<e72faaa81002180328g65e10fbdqf483dcb527bcac27@mail.gmail.com>
In-Reply-To
<4B7D21A0.4000706@drmicha.warpmail.net>
Show 26 quoted lines
>
> 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
Previous: Michael J Gruber
Message 4 of 4 in “Added hint about using .gitignore in git status while printing untracked files”
  1. Added hint about using .gitignore in git status while printing untracked filesPavan Kumar Sunkara, Feb 18, 2010
  2. Peter KreftingFeb 18, 2010
  3. Michael J GruberFeb 18, 2010
  4. Pavan Kumar SunkaraFeb 18, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.