Lists the files/directories containing changes within a commit range. This function is useful when building a monorepo (monolithic repository) to determine which services have changes.
Shell | Function |
|---|---|
Bash |
|
PowerShell |
|
pathis the file system path to a git repository.resourceis the name of the GitRepo Resource.commit-rangeoption specifies the range of commits to look for changes (Example:HEAD~1..HEAD).directories-onlyoption lists only the directories containing changes.depthoption returns file/folder at certain depth. Root directory has depth value 1.