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 |
|
path
is the file system path to a git repository.resource
is the name of the GitRepo Resource.commit-range
option specifies the range of commits to look for changes (Example:HEAD~1..HEAD
).directories-only
option lists only the directories containing changes.depth
option returns file/folder at certain depth. Root directory has depth value 1.