correct priority for project detection
Priority of project detection: 1. .wakatime-project file 2. [project_map] section in .wakatime.cfg INI file 3. --project arg 3. revision control directory name 5. --alternate-project arg
This commit is contained in:
parent
006bab2d71
commit
e8bd8bba76
3 changed files with 59 additions and 27 deletions
|
@ -1,7 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
wakatime.projects.wakatime
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
wakatime.projects.wakatime_project_file
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Information from a .wakatime-project file about the project for
|
||||
a given file. First line of .wakatime-project sets the project
|
||||
|
@ -21,7 +21,7 @@ from ..compat import u, open
|
|||
log = logging.getLogger('WakaTime')
|
||||
|
||||
|
||||
class WakaTime(BaseProject):
|
||||
class WakaTimeProjectFile(BaseProject):
|
||||
|
||||
def process(self):
|
||||
self.config = self._find_config(self.path)
|
Loading…
Add table
Add a link
Reference in a new issue