(self, path)
| 545 | |
| 546 | # Overwriting the one in the parent class. |
| 547 | def FindFilesIn(self, path): |
| 548 | if exists(path+'/.git'): |
| 549 | output = subprocess.Popen('git ls-files --full-name', |
| 550 | stdout=PIPE, cwd=path, shell=True) |
| 551 | result = [] |
| 552 | for file in decode(output.stdout.read()).split(): |
| 553 | for dir_part in dirname(file).replace(os.sep, '/').split('/'): |
| 554 | if self.IgnoreDir(dir_part): |
| 555 | break |
| 556 | else: |
| 557 | if (self.IsRelevant(file) and exists(file) |
| 558 | and not self.IgnoreFile(file)): |
| 559 | result.append(join(path, file)) |
| 560 | if output.wait() == 0: |
| 561 | return result |
| 562 | return super(SourceProcessor, self).FindFilesIn(path) |
| 563 | |
| 564 | def IsRelevant(self, name): |
| 565 | for ext in SourceProcessor.RELEVANT_EXTENSIONS: |
nothing calls this directly
no test coverage detected