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

Re: [RFC] A unique way to express "all" (vs "add vs "update") ?

From
JLJerome Lovy <t2a2e9z8ncbs9qg@brefemail.com>
Date
Dec 18, 2006, 14:04 UTC
Message-ID
<45869FD6.3030104@brefemail.com>
In-Reply-To
<87mz5o4v2v.wl%cworth@cworth.org>
Carl Worth wrote:
Show 22 quoted lines
> On Fri, 15 Dec 2006 12:38:51 +0100, Jerome Lovy wrote:
>> While I am very happy with the refactorings undertaken with regard to
>> "git add/git commit" (both for UI and documentation), I am still a
>> little confused by the different ways I seem to find to express the idea
>> "I want to add (sort of) all file contents".
> 
> I agree that there have been huge improvements---particularly in
> documentation. So thanks to everybody!
> 
> Here's a simpler idea that might add the unification you're looking
> for. How about a new option:
> 
> 	git add -a|--all
> 
> This would allow "git commit -a|--all" to be understood as a simple
> helper for:
> 
> 	git add -a|--all
> 	git commit
> 
> That kind of unification seems like it could be helpful while learning
> things.
Exactly. I like it.

Now, it underlines the fact that this "--all" should IMHO rather be called "--all-known" or the like - both for "add" and "commit" - but all the same, I would be very happy with a more complete "git add" following your proposed unification.

Jérôme
Previous: Carl Worth
Message 6 of 6 in “[RFC] A unique way to express "all" (vs "add vs "update") ?”
  1. Jerome LovyDec 15, 2006
  2. Andreas EricssonDec 15, 2006
  3. Junio C HamanoDec 15, 2006
  4. Jerome LovyDec 18, 2006
  5. Carl WorthDec 15, 2006
  6. Jerome LovyDec 18, 2006

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.