"git add $ignored_file" fail
- From
- Santi <sbejar@gmail.com>
- Date
- May 16, 2006, 22:07 UTC
- Message-ID
- <8aa486160605161507w3a27152dq@mail.gmail.com>
Hi *,
When you try to add ignored files with the git-add command it fails because the call to:
git-ls-files -z \
--exclude-from="$GIT_DIR/info/exclude" \
--others --exclude-per-directory=.gitignoredoes not output this file because it is ignored. I know I can do it with:
git-update-index --add $ignored_file
I understand the behaviour of git-ls-files but I think it is no the expected for git-add, at least for me.
Thanks
Santi