Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #505 from kleintom/untracked_file
Browse files Browse the repository at this point in the history
Don't show "Untracked file" in the Nav pane when a file is tracked.
  • Loading branch information
erikrose committed Mar 18, 2016
2 parents 02e06d7 + b210681 commit 721dfcc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dxr/plugins/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,14 +466,15 @@ def links(self):
tree=self.tree.name,
revision=self.vcs.revision,
path=self.path))])
else:
yield 5, 'Untracked file', []

if is_textual_image(self.path):
yield (4,
'Image',
[('svgview', 'View', url_for('.raw',
tree=self.tree.name,
path=self.path))])
else:
yield 5, 'Untracked file', []

def is_interesting(self):
"""Core plugin puts all files in the search index."""
Expand Down

0 comments on commit 721dfcc

Please sign in to comment.