From: "pradeep singh rautela" <rautelap@gmail.com>
To: git@vger.kernel.org
Subject: Why does git track directory listed in .gitignore/".git/info/exclude"?
Date: Wed, 23 Jan 2008 19:24:44 +0530 [thread overview]
Message-ID: <6bc632150801230554l3b24e1e4lb4641bf7c16857c0@mail.gmail.com> (raw)
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
next reply other threads:[~2008-01-23 13:55 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-23 13:54 pradeep singh rautela [this message]
2008-01-23 14:04 ` Why does git track directory listed in .gitignore/".git/info/exclude"? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6bc632150801230554l3b24e1e4lb4641bf7c16857c0@mail.gmail.com \
--to=rautelap@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).