git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Explicitly adding ignored files in subdirectories not working
@ 2010-02-23 21:07 Sverre Rabbelier
  2010-02-23 21:50 ` Johannes Schindelin
  2010-02-24  4:59 ` Jeff King
  0 siblings, 2 replies; 8+ messages in thread
From: Sverre Rabbelier @ 2010-02-23 21:07 UTC (permalink / raw)
  To: Git List

Heya,

I've been bitten by this before, is this behavior intentional? We
don't even warn that the user's action was ignored; at the very least
we should do that. The current behavior is just frustrating.

sverre@laptop-sverre:~/code$ git init ignoretest
Initialized empty Git repository in /home/sverre/code/ignoretest/.git/
sverre@laptop-sverre:~/code$ cd ignoretest/
sverre@laptop-sverre:~/code/ignoretest$ mkdir subdir
sverre@laptop-sverre:~/code/ignoretest$ echo "hi" >> subdir/a.txt
sverre@laptop-sverre:~/code/ignoretest$ echo "subdir" >> .gitignore
sverre@laptop-sverre:~/code/ignoretest$ git add .gitignore
sverre@laptop-sverre:~/code/ignoretest$ git commit -m "set up ignore"
[master (root-commit) 5a5a614] set up ignore
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 .gitignore
sverre@laptop-sverre:~/code/ignoretest$ git add subdir/a.txt
sverre@laptop-sverre:~/code/ignoretest$ git status
# On branch master
nothing to commit (working directory clean)


-- 
Cheers,

Sverre Rabbelier

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

end of thread, other threads:[~2010-02-27 17:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-23 21:07 Explicitly adding ignored files in subdirectories not working Sverre Rabbelier
2010-02-23 21:50 ` Johannes Schindelin
2010-02-23 21:58   ` Sverre Rabbelier
2010-02-23 22:11     ` Johannes Schindelin
2010-02-24  4:59 ` Jeff King
2010-02-27 12:59   ` Sverre Rabbelier
2010-02-27 16:58     ` Junio C Hamano
2010-02-27 17:03       ` Sverre Rabbelier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).