login
Header Space

 
 

Why does git track directory listed in .gitignore/".git/info/exclude"?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Wednesday, January 23, 2008 - 9:54 am

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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Why does git track directory listed in .gitignore/".git/info..., pradeep singh rautela, (Wed Jan 23, 9:54 am)
Re: Why does git track directory listed in .gitignore/".git/..., pradeep singh rautela, (Wed Jan 23, 10:04 am)
Re: [PATCH] gitignore(5): Allow "foo/" in ignore list to mat..., Johannes Schindelin, (Thu Jan 31, 7:38 am)
Re: [PATCH] gitignore(5): Allow "foo/" in ignore list to mat..., pradeep singh rautela, (Thu Jan 31, 7:56 am)
Re: Why does git track directory listed in .gitignore/".git/..., pradeep singh rautela, (Thu Jan 24, 6:44 am)
speck-geostationary