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

Re: Feature request: Limit git-status reports to a directory

From
Yin Ping <pkufranky@gmail.com>
Date
Oct 25, 2007, 02:14 UTC
Message-ID
<46dff0320710241914t7d93aae1t991fbcaacde77046@mail.gmail.com>
In-Reply-To
<ffofbm$lmc$1@ger.gmane.org>
On 10/25/07, Michel Marti <mma@objectxp.com> wrote:
Show 5 quoted lines
> I am sometimes interested in only seeing the status for a specific
> directory (and its sub-directories), but git-status is no help in this
> case - passing a directory does some sort of "git-commit --dry-run". I
> first thought that this is a bug until I saw in the man-page that this
> is actually a feature...

It's also painful for me. IMHO, the behaviour of "git-status" should keep consistent with "git-diff" and "git-log" which allow for the path.

Another point, It will be helpful to add a config item to change the default behaviour for 'git-diff" and "git-log". For example, 'diff.defaultcurrentpath=true' to let git only show difference in current directory instead of difference in top directory when typing 'git-diff'

Show 8 quoted lines
>
> - Michel
>
> -
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
-- 
franky
Previous: Michel MartiNext: Johannes Schindelin
Message 2 of 5 in “Feature request: Limit git-status reports to a directory”
  1. Michel MartiOct 24, 2007
  2. Yin PingOct 25, 2007
  3. Johannes SchindelinOct 25, 2007
  4. Wincent ColaiutaOct 25, 2007
  5. Michel MartiOct 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.