Skip to content

SGD Delta is showing us all file diff #990

@duttayan98

Description

@duttayan98

Issue verification check:

  • is the current repository fully deployable at the commit SHA provided with the 'from' parameter of the command?

What is the problem?

--- When we are running SGD Delta using this command
sf sgd:source:delta -a 56 --to HEAD --from origin/$BASE_BRANCH --output changed-sources/ -i manifest/mdapi/.sgdignore --generate-delta

Here BASE_BRANCH is our ORG branch (Ex: QA, DEV, UAT)

Diff files are getting generated larger than expected, actually it's whole file difference.

What is the parameter and the value you used with it?

sf sgd:source:delta -a 56 --to HEAD --from origin/$BASE_BRANCH --output changed-sources/ -i manifest/mdapi/.sgdignore --generate-delta

What is the expected result?

Diff should only contain last commit of base branch to the last commit of the source branch.

What is the actual result?

Diff files are getting generated larger than expected, actually it's whole file difference.

Steps to reproduce

  1. Generate PR in bitbucket which is showing the correct diff.
  2. After pipeline gets triggered in azure dev ops generate delta is a step where we run the above command.
  3. After generating delta it's showing multiple diff in files.

Execution context


Operating System:

npm version: … 9.6.7

node version: … 18.17.1

git version: …2.39.5

sf version: …2.62.6

sgd plugin version: … 6.1.1

More information (optional)


Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions