threads / discuss / 19936

feature suggestion: git commit -a -o ...

Subject: feature suggestion: git commit -a -o ...

## tl;dr

2 messages between Jun 25, 2009 and Jun 26, 2009.

replies: 1people: 2as markdown or json

David Reitter· Jun 25, 2009, 20:39 UTC · lore

I'm wondering why "git commit -a -o *" is not supported. With this command I'd like to commit the intersection of all changed, tracked files and those in the current directory.

I found that "git commit ." does what I want and it even detects deleted files (excellent, thank you).

Jeff King· Jun 26, 2009, 06:34 UTC · re: David Reitter · lore

Re: feature suggestion: git commit -a -o ...

On Thu, Jun 25, 2009 at 04:39:32PM -0400, David Reitter wrote:
Show 6 quoted lines
> I'm wondering why "git commit -a -o *" is not supported.
> With this command I'd like to commit the intersection of all changed,
> tracked files and those in the current directory.
> 
> I found that "git commit ." does what I want and it even detects
> deleted files (excellent, thank you).

I don't understand what "-a" is supposed to be doing there. It means "all tracked files in the whole repo". But from your "git commit ." example, it sounds like you just want "git commit -o *" (in fact, "git commit ." is more or less equivalent (with the except of dot-files) to "git commit *", which is in turn the same as "git commit -o *").

Can you be more clear about the set of files you have, the set you want to commit, and how "git commit" differs from your expectations?

-Peff

← back to recent threads