tv seems to ignore files and folders from .gitignore #3

Closed
opened 2025-04-09 14:58:29 +00:00 by tcsenpai · 0 comments
Owner

Originally created by @bpairet on 4/7/2025

Description
I don't know if that is a bug or if files listed in .gitignore are considered to be not interesting and thus filtered. I couldn't find anything on the repo about this so I figured that is more likely to be unintended. I have a git repo similar to the one in the example, where I have a results folder that I don't want to commit but I'd like to be able to search inside of it.

Example

mkdir test_tv_gitignore
cd test_tv_gitignore
git init
echo "hello" >> ignored_file.txt
echo "ignored_file.txt" >> .gitignore
mkdir result_folder
touch result_folder/results_{1,2,3}.txt
echo "result_folder/*" >> .gitignore
mkdir other_folder
touch other_folder/other_{1,2,3}.txt

Expected behavior
I would expect to see ignored_file.txt and result_folder/results_{1,2,3}.txt when using tv from the test_tv_gitignore or parent folder.

Actual behavior
When using tv from test_tv_gitignore, it only lists other_folder/other_{1,2,3}.txt. If I launch tv from test_tv_gitignore/result_folder/, I then can see the results_{1,2,3}.txt files.

Environment

  • OS: Ubuntu
*Originally created by @bpairet on 4/7/2025* **Description** I don't know if that is a bug or if files listed in .gitignore are considered to be not interesting and thus filtered. I couldn't find anything on the repo about this so I figured that is more likely to be unintended. I have a git repo similar to the one in the example, where I have a results folder that I don't want to commit but I'd like to be able to search inside of it. **Example** ``` mkdir test_tv_gitignore cd test_tv_gitignore git init echo "hello" >> ignored_file.txt echo "ignored_file.txt" >> .gitignore mkdir result_folder touch result_folder/results_{1,2,3}.txt echo "result_folder/*" >> .gitignore mkdir other_folder touch other_folder/other_{1,2,3}.txt ``` **Expected behavior** I would expect to see `ignored_file.txt` and `result_folder/results_{1,2,3}.txt` when using tv from the `test_tv_gitignore` or parent folder. **Actual behavior** When using tv from test_tv_gitignore, it only lists `other_folder/other_{1,2,3}.txt`. If I launch tv from `test_tv_gitignore/result_folder/`, I then can see the `results_{1,2,3}.txt` files. **Environment** - OS: Ubuntu
tcsenpai added the
bug
label 2025-04-09 14:58:30 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/television#3
No description provided.