git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Why does git track directory listed in .gitignore/".git/info/exclude"?
@ 2008-01-23 13:54 pradeep singh rautela
  2008-01-23 14:04 ` pradeep singh rautela
  2008-01-23 21:11 ` Why does git track directory listed in .gitignore/".git/info/exclude"? Wayne Davison
  0 siblings, 2 replies; 20+ messages in thread
From: pradeep singh rautela @ 2008-01-23 13:54 UTC (permalink / raw)
  To: git

Hi All,

I have an source directory, which in turn has some other directories too.
I do not want to track one of these directories.
So i added the directory name in .gitignore as well as in
.git/info/exclude for my repo.

i.e i have added following line to both of them -
xen-3.1.0-src/

I copied xen-3.1.0-src from archives in the git repo's base directory.

Now when i do a git-status i get
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       xen-3.1.0-src/
nothing added to commit but untracked files present (use "git add" to track)

Why is git seeing xen-3.1.0-src directory at all?
Is this the expected behaviour?

I thought i should not get this message after adding relevant entries
in .gitignore or in info/exclude .

What am i doing wrong here?
Is there a way that this can be done without having to witness this
message everytime i do a git status?

Please CC me as I am not subscribed to the list.

Thanks,
         ~Pradeep
-- 
--
pradeep singh rautela
http://eagain.wordpress.com
http://emptydomain.googlepages.com

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

end of thread, other threads:[~2008-02-01  8:58 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-23 13:54 Why does git track directory listed in .gitignore/".git/info/exclude"? pradeep singh rautela
2008-01-23 14:04 ` pradeep singh rautela
2008-01-23 21:17   ` Linus Torvalds
2008-01-24 10:44     ` pradeep singh rautela
2008-01-30 12:35     ` Adam Piatyszek
2008-01-30 20:39       ` Junio C Hamano
2008-01-30 21:06         ` Junio C Hamano
2008-01-31  7:05         ` Adam Piatyszek
2008-01-31  8:54           ` *Re: " Junio C Hamano
2008-01-31  9:17             ` [PATCH] gitignore(5): Allow "foo/" in ignore list to match directory "foo" Junio C Hamano
2008-01-31  9:41               ` Jeff King
2008-01-31 10:35                 ` Junio C Hamano
2008-01-31 10:42                   ` Jeff King
2008-01-31 11:38                     ` Johannes Schindelin
2008-01-31 11:56                       ` pradeep singh rautela
2008-01-31 21:51                         ` Junio C Hamano
2008-01-31 22:53                           ` Adam Piatyszek
2008-02-01  8:56                           ` Andreas Ericsson
2008-01-31 12:29                       ` Adam Piatyszek
2008-01-23 21:11 ` Why does git track directory listed in .gitignore/".git/info/exclude"? Wayne Davison

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).