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

Re: [PATCH 1/2] Add "--only-untracked" flag to status commands.

From
VJVäinö Järvelä <v@pp.inet.fi>
Date
Aug 24, 2007, 06:28 UTC
Message-ID
<1C01FFED-1C80-4C1F-A73D-2529B5B81F7E@pp.inet.fi>
In-Reply-To
<vpqabsikmbg.fsf@bauges.imag.fr>
On Aug 23, 2007, at 23:50, Matthieu Moy wrote:
Show 7 quoted lines
> Väinö Järvelä <v@pp.inet.fi> writes:
>
>> Subject: Re: [PATCH 1/2] Add "--only-untracked" flag to status  
>> commands.
>                                        ^^
>
> I suppose you meant --only-tracked.
Yes, a stupid typo. It should be --only-tracked.
Show 9 quoted lines
>>  static const char runstatus_usage[] =
>> -"git-runstatus [--color|--nocolor] [--amend] [--verbose] [-- 
>> untracked]";
>> +"git-runstatus [--color|--nocolor] [--amend] [--verbose]
>> [--untracked]" "[--only-tracked]";
>                ^^^
>
> The compiler will concatenate the strings, but won't add a space. That
> results in "... [--untracked][--only-tracked]".
Should have checked it more properly, sorry about that.
>
> Otherwise, the patch sounds fine to me. Not /terribly/ usefull, but
> why not.

This is something that has come up many times on our project, there might be a lot of temporary files that are used inside the project tree, to test the code, and the user just wants to see the modifications to tracked files without using a pager. One could use gitignore, but in our case, it would be hard to create a gitignore which would ignore all of the test files, and none of the actual project files, so it's quite convenient to use --only-tracked.

A better behavior might be to test outside of the project tree.
>
> -- 
> Matthieu

-- Väinö

Previous: Matthieu Moy
Message 4 of 4 in “Add "--only-untracked" flag to status commands.”
  1. 1/2 Add "--only-untracked" flag to status commands.Väinö Järvelä, Aug 23, 2007
  2. 2/2 Documented "--only-untracked" flag.Väinö Järvelä, Aug 23, 2007
  3. Matthieu MoyAug 23, 2007
  4. Väinö JärveläAug 24, 2007

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.