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

Re: [PATCH] make 'git add' a first class user friendly interface to the index

From
Han-Wen Nienhuys <hanwen@xs4all.nl>
Date
Dec 2, 2006, 14:51 UTC
Message-ID
<457192D5.8090209@xs4all.nl>
In-Reply-To
<ekrjc9$8uc$1@sea.gmane.org>
Jakub Narebski escreveu:
Show 10 quoted lines
> Junio C Hamano wrote:
> 
>> By the way, aren't people disturbed that "git rm" does not
>> default to "-f" -- I rarely use the command myself but that
>> makes it feel even more awkward that "git rm foo" does not
>> remove the file "foo".
> 
> But _only_ if file is unmodified. I think that "git rm" meaning
> "remove this file from version control, but not from working area"
> is a good thing; if you want to remove file, just /usr/bin/rm it.
In my workflow,  I regularly get bitten by this: 
I do 
  git checkout devel
  git rm src/foo.cc
  git commit src/foo.cc    # or whatever -a -i --difficult option is necessary
  git checkout stable
     ...barf: trying to overwrite untracked src/foo.cc file..
I think for the default to remove from the working area is better. 
FWIW, I consider it annoyance with CVS as well 
-- 
 Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen
Previous: Jakub NarebskiNext: Alan Chandler
Message 10 of 21 in “make 'git add' a first class user friendly interface to the index”
  1. make 'git add' a first class user friendly interface to the indexNicolas Pitre, Dec 1, 2006
  2. Junio C HamanoDec 1, 2006
  3. Alan ChandlerDec 2, 2006
  4. Nicolas PitreDec 2, 2006
  5. Nicolas PitreDec 2, 2006
  6. Carl WorthDec 2, 2006
  7. Junio C HamanoDec 2, 2006
  8. Carl WorthDec 2, 2006
  9. Jakub NarebskiDec 2, 2006
  10. Han-Wen NienhuysDec 2, 2006
  11. Alan ChandlerDec 2, 2006
  12. Carl WorthDec 2, 2006
  13. Jakub NarebskiDec 2, 2006
  14. Alan ChandlerDec 2, 2006
  15. Nicolas PitreDec 3, 2006
  16. Nicolas PitreDec 3, 2006
  17. Nicolas PitreDec 3, 2006
  18. Jakub NarebskiDec 2, 2006
  19. Nicolas PitreDec 3, 2006
  20. make 'git add' a first class user friendly interface to the indexNicolas Pitre, Dec 3, 2006
  21. Alan ChandlerDec 3, 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.