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

Re: [PATCH] Allow git-runstatus to limit its scope to a set of files/directories.

From
MMMichel Marti <mma@objectxp.com>
Date
Oct 27, 2007, 18:44 UTC
Message-ID
<47238729.10901@objectxp.com>
In-Reply-To
<Pine.LNX.4.64.0710271922340.4362@racer.site>
Johannes Schindelin wrote:
Show 11 quoted lines
> On Sat, 27 Oct 2007, Michel Marti wrote:
> 
>> Signed-off-by: Michel Marti <mma@objectxp.com>
>> ---
>> IMO, the next step should be to tweak git-status/git-commit: I suggest 
>> introducing a new option '--what-if' to 'git-commit' that behaves like current
>> 'git-status [<path>...]' and in return stop 'git-status' from displaying 
>> '[<path>...]'  as "Changes to commit".
> 
> I am not sure this is the correct way to go, since "git status" as a "git 
> commit --dry-run" has worked well so far.

Maybe, but current git-status behaviour is somewhat illogical and I'm pretty sure there are more than a few git-users that were puzzled after calling "git-status some-dir" for the first time.

> Besides, I would like to see builtin-commit go in as soon as possible, and 
> this patch would delay that.

Hmmm, why is that? The patch only touches git-runstatus, invoking "git-status <path>" will behave as usual.

- Michel
Previous: Johannes Schindelin
Message 3 of 3 in “Allow git-runstatus to limit its scope to a set of files/directories.”
  1. Allow git-runstatus to limit its scope to a set of files/directories.Michel Marti, Oct 27, 2007
  2. Johannes SchindelinOct 27, 2007
  3. Michel MartiOct 27, 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.