Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is a question about why Giggle acts in a certain way.


To reproduce what my question is about you need to have git and Giggle installed. Step 4–10 is not necessary to reproduce. I added them to illustrate git workflow.

  1. mkdir test – Make a directory for testing.
  2. cd test
  3. git init – Initialize a git project.
  4. echo -e '/*\n!*.tex' > .gitignore – Create a .gitignore file.
  5. echo -e "test" > test.tex – Write something to test.tex.
  6. git add .
  7. git commit -m "First commit" – Commit what's written to test.tex.
  8. echo -e "\test" >> test.tex – Write something more to test.tex.
  9. git add .
  10. git commit -m "Second commit" – Commit what's written to test.tex.
  11. Check the project in Giggle. There is no file to be viewed in the project: No file to be viewed in the project in Giggle
  12. rm .gitignore
  13. Update the project in Giggle (Ctrl+R). Now the file can viewed: The file can viewed in Giggle

My question

Why can't the files be viewed when the .gitignore file is there (step 11)? It should not be due to the .gitignore file. The content of the .gitignore file is:


The first line means ignore all. The second line means don't ignore all .tex files. So test.tex should not be ignored. man gitignore says

An optional prefix ! which negates the pattern; any matching file excluded by a previous pattern will become included again.

share|improve this question

This sounds like it is a bug in the program. Perhaps GNOME Bug # 575018. I've added you're test case to the report.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.