Git development
 help / color / mirror / Atom feed
* feature suggestion: git commit -a -o ...
@ 2009-06-25 20:39 David Reitter
  2009-06-26  6:34 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: David Reitter @ 2009-06-25 20:39 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 289 bytes --]

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).





[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2193 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: feature suggestion: git commit -a -o ...
  2009-06-25 20:39 feature suggestion: git commit -a -o David Reitter
@ 2009-06-26  6:34 ` Jeff King
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2009-06-26  6:34 UTC (permalink / raw)
  To: David Reitter; +Cc: git

On Thu, Jun 25, 2009 at 04:39:32PM -0400, David Reitter wrote:

> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-26  6:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-25 20:39 feature suggestion: git commit -a -o David Reitter
2009-06-26  6:34 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox