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

Re: friendlier names

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 27, 2009, 19:50 UTC
Message-ID
<7vocxsy1dd.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<m37i4gy2z6.fsf@localhost.localdomain>
Jakub Narebski <jnareb@gmail.com> writes:
Show 6 quoted lines
> It is a bit of pity that "git add" was overloaded to also add new
> contents and not only add new file (and its contents!), instead of
> having new command "git stage" to be porcelain version of 
> "git update-index" porcelain.  And perhaps "git resolved" to only
> mark resolved entries (so e.g. "git resolved ." would not add new
> files, nor add new contents of files which were not in conflict).
I do not think so.

People who are taught with various means (including "git stage" alias) understand that you prepare the contents you want to record in the commit you are about to make by updating the contents registered in the index aka staging area, then you do not need "git resolved".

You resolve, you have the desired content in your work tree, and you register the updated contents from your work tree to the index aka staging area, in exactly the same way as you do when you want to include updated contents for any commit.

Previous: Jakub NarebskiNext: Jakub Narebski
Message 8 of 10 in “friendlier names”
  1. David AbrahamsJan 27, 2009
  2. Felipe ContrerasJan 27, 2009
  3. Shawn O. PearceJan 27, 2009
  4. David AbrahamsJan 27, 2009
  5. Johannes SchindelinJan 27, 2009
  6. Junio C HamanoJan 27, 2009
  7. Jakub NarebskiJan 27, 2009
  8. Junio C HamanoJan 27, 2009
  9. Jakub NarebskiJan 28, 2009
  10. Junio C HamanoJan 28, 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.