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:35 UTC
Message-ID
<6D8BA2E0-50CD-4B7B-84D3-3D9A61421131@pp.inet.fi>
In-Reply-To
<20070823203246.GB3516@steel.home>
On Aug 23, 2007, at 23:32, Alex Riesen wrote:
Show 10 quoted lines
> Väinö Järvelä, Thu, Aug 23, 2007 21:58:31 +0200:
>> With this flag, the user can choose to filter untracked files from  
>> the
>> status output. This can be used to either speed up the status  
>> output, as
>> the untracked files are not fetched at all, or to just cleanup the
>> output without using gitignore.
>
> "git diff -r --name-status; git diff --cached -r --name-status" is  
> not enough?

That line will result in duplicate entries, if files are staged, and the output of git-status is neater (but longer) in my opinion.

""" M Makefile M Makefile """ vs. """ # On branch entity_class # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: Makefile # # Changed but not updated: # (use "git add <file>..." to update what will be committed) # # modified: Makefile # # Untracked files were filtered by "--only-tracked" """

Sure you could remove duplicate entries with "sort|uniq", or something, but just running "git status --only-tracked", is cleaner, and more user friendly.

The way I see the flag used is: A user runs "git status", sees that there is too much untracked files and not enough scrollback, so he runs "git status --only-tracked" to filter the results.

-- Väinö

Previous: Alex RiesenNext: Jakub Narebski
Message 2 of 17 in “Re: [PATCH 1/2] Add "--only-untracked" flag to status commands.”
  1. Alex RiesenAug 23, 2007
  2. Väinö JärveläAug 24, 2007
  3. Jakub NarebskiAug 24, 2007
  4. Andreas EricssonAug 27, 2007
  5. Junio C HamanoAug 24, 2007
  6. Väinö JärveläAug 24, 2007
  7. Johannes SchindelinAug 24, 2007
  8. Väinö JärveläAug 24, 2007
  9. Johannes SchindelinAug 25, 2007
  10. Matthieu MoyAug 24, 2007
  11. Jakub NarebskiAug 24, 2007
  12. Junio C HamanoAug 24, 2007
  13. Väinö JärveläAug 25, 2007
  14. Johannes SchindelinAug 25, 2007
  15. Alex RiesenAug 24, 2007
  16. Väinö JärveläAug 25, 2007
  17. Junio C HamanoAug 25, 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.