Skip to content

Git diff tool

Script ifs_git_diff.cmd/sh

The script ifs_git_diff.cmd/sh is located in component fndbas/build folder, and will in a build home be located in the build folder.

When extracting the changed files between two git commit hashes, the ifs_git_diff script should be used. The script will list all changed files between the fromtag and the totag hashes. The list will be spooled to a file that will be used to copy the files from the git repo to a delivery using ifs_create_build_structure script. Note: The git repo must be checked out on the totag commit hash when copying the actual files.

The script accepts three parameters.

ParameterRequiredPurposeExamples/Defaults
--gitcheckoutMandatoryPath to the cloned git repo--gitcheckout "c:\work\gitrepo"
--fromtagMandatoryThe commit hash or tag from where the diff start--fromtag "delivery1"
--totagMandatoryPath to the delivery.--totag "delivery2"
--filelistnameOptionalName of the file list file.
Default: --gitcheckout\..\diff_file_list.txt or --gitcheckout\..\deleted_file_list.txt
--filelistname c:\work\difflist.txt
--deletedOptionalWill generate a list of deleted files instead of modified/added files.
Example:  

C:\Work\build_home\build> .\ifs_git_diff --gitcheckout "C:\customer1\gitrepo" --fromtag "delvery1" --totag "delivery2" --filelistname "c:\temp\diff_file_list.txt"