MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / get_new_file

Method get_new_file

tools/ci/format_ignore.py:74–84  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

72 return 1
73
74 def get_new_file(self):
75 result = subprocess.run(['git', 'diff', '--name-only', 'HEAD', 'origin/master', '--diff-filter=ACMR', '--no-renames', '--full-index'], stdout = subprocess.PIPE)
76 file_list = result.stdout.decode().strip().split('\n')
77 new_files = []
78 for line in file_list:
79 logging.info("modified file -> {}".format(line))
80 result = self.__exclude_file(line)
81 if result != 0:
82 new_files.append(line)
83
84 return new_files

Callers

nothing calls this directly

Calls 2

__exclude_fileMethod · 0.95
runMethod · 0.45

Tested by

no test coverage detected