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

Re: 'git add' regression in git-1.7?

From
SNSungHyun Nam <goweol@gmail.com>
Date
Feb 19, 2010, 05:04 UTC
Message-ID
<hll65c$87a$1@ger.gmane.org>
In-Reply-To
<32541b131002182042p610fce4ex96efbffea9afe2ed@mail.gmail.com>
Avery Pennarun wrote:
Show 11 quoted lines
> On Thu, Feb 18, 2010 at 11:30 PM, SungHyun Nam<goweol@gmail.com>  wrote:
>> 'git add' does NOT add files in ignored path.
>>
>> When the .gitignore file contains:
>>     tmp/
>> If I do:
>>     git add tmp/test.txt
>> Nothing happens.
>
> Try using:
>       git add -f tmp/test.txt
Thanks, it works.

Well, before sending the previous email, I checked the RelNotes-1.7.*.txt, and could not find such a change by searching 'git add'. So, I thought it's a regression.

Regards, namsh

Previous: Avery PennarunNext: Avery Pennarun
Message 3 of 17 in “'git add' regression in git-1.7?”
  1. SungHyun NamFeb 19, 2010
  2. Avery PennarunFeb 19, 2010
  3. SungHyun NamFeb 19, 2010
  4. Avery PennarunFeb 19, 2010
  5. Jeff KingFeb 19, 2010
  6. Jeff KingFeb 19, 2010
  7. Jeff KingFeb 19, 2010
  8. Junio C HamanoMar 1, 2010
  9. add: fail "git add ignored-dir/file" without -fJunio C Hamano, Mar 1, 2010
  10. 1/3 t0050: mark non-working test as suchJunio C Hamano, Mar 1, 2010
  11. Jeff KingMar 9, 2010
  12. Jeff KingMar 9, 2010
  13. Junio C HamanoMar 10, 2010
  14. Jeff KingMar 11, 2010
  15. Junio C HamanoMar 14, 2010
  16. Jeff KingMar 14, 2010
  17. Junio C HamanoMar 15, 2010

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.