1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-19 16:25:50 +00:00
This commit is contained in:
Otto Winter
2019-05-24 17:20:06 +02:00
parent b73b6ed5d0
commit 7862855d14
5 changed files with 21 additions and 8 deletions

View File

@@ -126,3 +126,13 @@ def filter_changed(files):
for c in files:
print(" {}".format(c))
return files
def git_ls_files():
command = ['git', 'ls-files', '-s']
proc = subprocess.Popen(command, stdout=subprocess.PIPE)
output, err = proc.communicate()
lines = [x.split() for x in output.decode('utf-8').splitlines()]
return {
s[3].strip(): int(s[0]) for s in lines
}