After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 775949 - [patch attached] Tracker inappropriately avoids indexing the content of git repos
[patch attached] Tracker inappropriately avoids indexing the content of git r...
Status: RESOLVED WONTFIX
Product: tracker
Classification: Core
Component: Preferences
git master
Other Linux
: Normal normal
: ---
Assigned To: tracker-preferences
tracker-preferences
Depends on:
Blocks:
 
 
Reported: 2016-12-11 15:30 UTC by Nate Graham
Modified: 2017-01-30 21:15 UTC
See Also:
GNOME target: ---
GNOME version: 3.21/3.22


Attachments
Patch to make tracker index the content of git repos by default, avoiding .git directories (1.02 KB, patch)
2016-12-11 15:30 UTC, Nate Graham
none Details | Review

Description Nate Graham 2016-12-11 15:30:41 UTC
Created attachment 341760 [details] [review]
Patch to make tracker index the content of git repos by default, avoiding .git directories

Right now tracker is set up to avoid indexing any directory that has a .git directory inside it. I'm not sure this is intentional, or desired. Certainly the .git directory itself should not be indexed, but I'd prefer if the content of the git repo was.

What I have personally done is to add '.git' to org.freedesktop.Tracker.Miner.Files.Ignored-directories and remove it from org.freedesktop.Tracker.Miner.Files.Ignored-directories-with-content

This makes the actual content of my git repos get indexed properly, without wasting time churning away on the .git directories.

I've attached a patch to make this config change the default.
Comment 1 Nate Graham 2017-01-04 23:09:32 UTC
Any comments?
Comment 2 Sam Thursfield 2017-01-20 14:10:01 UTC
Hi Nate
Thanks for the patch, but it's actually intentional that we avoid indexing the contents of Git repos. Tracker (and the SQLite full-text-search functionality that it wraps) doesn't scale well enough to index a big source code checkout. In the past we have had lots of cases where Tracker would index a checkout of linux.git and would burn lots of CPU and IO while doing so. This makes people (justifiably) annoyed.

I can see this might be annoying if you want a Git directory to be indexed, but we can't enable that by default. The best compromise is probably to document how to deal with this case; https://wiki.gnome.org/Projects/Tracker/Documentation/First5Minutes might be a good place to do it.
Comment 3 Nate Graham 2017-01-30 21:15:02 UTC
That's a shame.