Sfdx-git-delta: Dont recognize classes delta

Created on 8 Jun 2021  路  2Comments  路  Source: scolladon/sfdx-git-delta

Hi,

Thank you for this plugin is very useful for me. But currently, I have an issue related with the package.xml generated. It does not include the tag and I know that there is a difference because I created a new class. I'm really sure that the class does not exist in origin/devCol branch and exists in my current branch. Do you have any idea about why might be my problem?

I am running this command for getting the package, it works but doesn't include apex class.

sfdx sgd:source:delta --to "origin/devCol" --from $CI_COMMIT_SHA --output .

image

question

All 2 comments

Hi @dianaerb! Thank you for using SGD, and thank you for taking the time to log your issue!

My understanding of your situation is that your latest commit is in the $CI_COMMIT_SHA variable, and that the reference branch (against which the diff is to be performed) is origin/devCol.
Is that correct?

In that situation, you would have to use $CI_COMMIT_SHA as the --to, and the origin/devCol as the --from.
This means that a working command in your situation should probably look like this:
sfdx sgd:source:delta --to $CI_COMMIT_SHA --from "origin/devCol" --output .

Could you give it a try and let us know how it goes?
Thank you!

Thank you very much to answer my message @mehdisfdc. You are right. I tested it and worked fine.

Best regards!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

afzal-tag picture afzal-tag  路  4Comments

ashishshukla38 picture ashishshukla38  路  4Comments

arafesthain picture arafesthain  路  9Comments

arafesthain picture arafesthain  路  7Comments

jjulicher picture jjulicher  路  6Comments