* 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
* Re: Explicitly adding ignored files in subdirectories not working
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-24 4:59 ` Jeff King
1 sibling, 1 reply; 8+ messages in thread
From: Johannes Schindelin @ 2010-02-23 21:50 UTC (permalink / raw)
To: Sverre Rabbelier; +Cc: Git List
Hi,
On Tue, 23 Feb 2010, Sverre Rabbelier wrote:
> 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.
I get something like this:
-- snip --
$ cd Documentation
$ touch doc.dep
$ git add doc.dep
The following paths are ignored by one of your .gitignore files:
Documentation/doc.dep
Use -f if you really want to add them.
fatal: no files added
-- snap --
Ciao,
Dscho
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Explicitly adding ignored files in subdirectories not working
2010-02-23 21:50 ` Johannes Schindelin
@ 2010-02-23 21:58 ` Sverre Rabbelier
2010-02-23 22:11 ` Johannes Schindelin
0 siblings, 1 reply; 8+ messages in thread
From: Sverre Rabbelier @ 2010-02-23 21:58 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: Git List
Heya,
On Tue, Feb 23, 2010 at 22:50, Johannes Schindelin
<Johannes.Schindelin@gmx.de> wrote:
> $ cd Documentation
> $ touch doc.dep
> $ git add doc.dep
> The following paths are ignored by one of your .gitignore files:
> Documentation/doc.dep
> Use -f if you really want to add them.
> fatal: no files added
Do you have Documentation ignored? It works fine for ignored files,
files in _ignored directories_ however... :)
--
Cheers,
Sverre Rabbelier
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Explicitly adding ignored files in subdirectories not working
2010-02-23 21:58 ` Sverre Rabbelier
@ 2010-02-23 22:11 ` Johannes Schindelin
0 siblings, 0 replies; 8+ messages in thread
From: Johannes Schindelin @ 2010-02-23 22:11 UTC (permalink / raw)
To: Sverre Rabbelier; +Cc: Git List
Hi,
On Tue, 23 Feb 2010, Sverre Rabbelier wrote:
> On Tue, Feb 23, 2010 at 22:50, Johannes Schindelin
> <Johannes.Schindelin@gmx.de> wrote:
> > $ cd Documentation
> > $ touch doc.dep
> > $ git add doc.dep
> > The following paths are ignored by one of your .gitignore files:
> > Documentation/doc.dep
> > Use -f if you really want to add them.
> > fatal: no files added
>
> Do you have Documentation ignored? It works fine for ignored files,
> files in _ignored directories_ however... :)
Ah, that's what I missed...
Sorry,
Dscho
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Explicitly adding ignored files in subdirectories not working
2010-02-23 21:07 Explicitly adding ignored files in subdirectories not working Sverre Rabbelier
2010-02-23 21:50 ` Johannes Schindelin
@ 2010-02-24 4:59 ` Jeff King
2010-02-27 12:59 ` Sverre Rabbelier
1 sibling, 1 reply; 8+ messages in thread
From: Jeff King @ 2010-02-24 4:59 UTC (permalink / raw)
To: Sverre Rabbelier; +Cc: Git List
On Tue, Feb 23, 2010 at 10:07:52PM +0100, Sverre Rabbelier wrote:
> 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.
It is intentional to consider them ignored (but was broken prior to
v1.7.0), but it is a bug not to complain to the user. See:
http://thread.gmane.org/gmane.comp.version-control.git/140405
-Peff
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Explicitly adding ignored files in subdirectories not working
2010-02-24 4:59 ` Jeff King
@ 2010-02-27 12:59 ` Sverre Rabbelier
2010-02-27 16:58 ` Junio C Hamano
0 siblings, 1 reply; 8+ messages in thread
From: Sverre Rabbelier @ 2010-02-27 12:59 UTC (permalink / raw)
To: Jeff King, Junio C Hamano; +Cc: Git List
Heya,
On Wed, Feb 24, 2010 at 05:59, Jeff King <peff@peff.net> wrote:
> http://thread.gmane.org/gmane.comp.version-control.git/140405
Peff, IIRC from that thread was left to die with you handing over to
Junio? Junio, do you intend to investigate what's going on there?
--
Cheers,
Sverre Rabbelier
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Explicitly adding ignored files in subdirectories not working
2010-02-27 12:59 ` Sverre Rabbelier
@ 2010-02-27 16:58 ` Junio C Hamano
2010-02-27 17:03 ` Sverre Rabbelier
0 siblings, 1 reply; 8+ messages in thread
From: Junio C Hamano @ 2010-02-27 16:58 UTC (permalink / raw)
To: Sverre Rabbelier; +Cc: Jeff King, Git List
Sverre Rabbelier <srabbelier@gmail.com> writes:
>> http://thread.gmane.org/gmane.comp.version-control.git/140405
>
> Peff, IIRC from that thread was left to die with you handing over to
> Junio? Junio, do you intend to investigate what's going on there?
The thread is still in my inbox but haven't had a chance to allocate
enough time to look at the issue yet.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Explicitly adding ignored files in subdirectories not working
2010-02-27 16:58 ` Junio C Hamano
@ 2010-02-27 17:03 ` Sverre Rabbelier
0 siblings, 0 replies; 8+ messages in thread
From: Sverre Rabbelier @ 2010-02-27 17:03 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Jeff King, Git List
Heya,
On Sat, Feb 27, 2010 at 17:58, Junio C Hamano <gitster@pobox.com> wrote:
> The thread is still in my inbox but haven't had a chance to allocate
> enough time to look at the issue yet.
Understandable, I'll be patient until then :).
--
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).