diff --git a/processes/system.php b/processes/system.php index d9cb8b9..f028d4d 100644 --- a/processes/system.php +++ b/processes/system.php @@ -1,9 +1,12 @@ array_filter($diffLines)]; -// Store the serialized array in PHP comment block for pick up -file_put_contents($docRoot.$ICEcoderDir."/data/git-diff.php", ""); +while(true) { + $gitData = shell_exec("cd .. && { git diff --name-only --staged ; git ls-files --other --modified --exclude-standard ;} | sort | uniq"); + $diffLines = explode("\n", $gitData); + $output = ["paths" => array_filter($diffLines)]; + // Store the serialized array in PHP comment block for pick up + file_put_contents(dirname(__FILE__)."/../data/git-diff.php", ""); + sleep(2); +} ?>