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

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

From
Jeff King <peff@peff.net>
Date
Jun 26, 2009, 06:34 UTC
Message-ID
<20090626063435.GA12283@coredump.intra.peff.net>
In-Reply-To
<F9B3FF44-FC23-4ADA-A933-9BED857AB469@gmail.com>
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
Previous: David Reitter
Message 2 of 2 in “feature suggestion: git commit -a -o ...”
  1. David ReitterJun 25, 2009
  2. Jeff KingJun 26, 2009

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.