GR:Gravity/Xref

From Remain Software
Jump to navigation Jump to search

XREF

Xref is a fast and usable source code search and cross-reference engine. Xref helps with searching, cross-referencing, and navigating project sources. It understands more than 35 program file formats (C#, PHP, Java, Scala, JavaScript, HTML, SQL, etc.) and can index files not recognized by their extension as plain text files, allowing (free) text search on these files.

Gravity utilizes a project-centric approach to cross-referencing. This means that Gravity prepares a project directory, which can contain for example a Git or Subversion repository, and feeds these projects to the Xref indexer which takes care of indexing the sources in the project directories for cross-referencing. Gravity not only prepares the project directories it will also keep these directories synchronized with their remote counterparts. The server does this by polling the remote locations for changes at a fixed interval. If a change is detected then the corresponding project directory will be updated and re-indexed. Within the Xref configuration, a project directory translates to an Xref location. Each configured location has a unique location name that corresponds to the aforementioned project directory.

Xref Setup

Source Locations

Queries: Searching the sources

XREF for TD/OMS