I guess the title is explicit enough, There is no point for the +index page to list the files instead of the tracked files.
BTW, there are a few of .orig files in my directory, this sounds weird …
– Ben
There is a point, and in fact a number of points:
I have to admit that the decision was mostly dictated by simplicity and speed. I see no reason to add additional checks now, unless you can point to a convincing argument why non-tracked files shouldn't be displayed. – Radomir Dopieralski
I consider this as an inconsistency in the way Hatta works. If the index page list it, does this mean I can view it ? What If I then ask for history of this page ? And if I edit it, will it be added to my repository ? There might be a reason why I did not added it at the first time …
That's breaking my idea of Hatta that some pages might not be part of the repository. Maybe that's just me …
Usually, non tracked file are files that one don't want to share with all the instance of the repository, take config file with password for instance.
– Ben
Yes, you can view it. If you ask for history, you will see that there are no previous revisions. When you edit it, it will be added to the repository. Actually, if you think about it, it's a very consistent behavior: Hatta does as much as possible with the file. You can even search in it, if it was there when Hatta did reindexing.
The check for whether the file is tracked or not is simply too expensive to do it each time Hatta tries to access a page. If you don't want the file to be viewable, simply make it unreadable for the user that Hatta runs as. If you want it to stay viewable but not be editable, remove the write permission for that user. Hatta should behave accordingly (I'm not sure if it still shows the edit link then though, can't remember if I implemented that). – Radomir Dopieralski