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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Aug 23, 2007, at 23:32, Alex Riesen wrote:

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ö


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux