compare_git

JFrog Pipelines Documentation

Products
JFrog Pipelines
Content Type
User Guide
ft:sourceType
Paligo

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

compare_git [--path | --resource] [options]

PowerShell

compare_git [-path | -resource] [options]

  • 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.