Skip to content

Question - how could I use this to build a cumulative delta based on a list of commit ids? #1039

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rory-webber opened this issue Mar 24, 2025 · 3 comments
Labels
question Further information is requested

Comments

@rory-webber
Copy link

Hi,

Not sure if this is possible, but what I'd really like to be able to do is pass a list of commit ids, and have the plugin iterate over those and build a cumulative set of unique components that have been modified.

Is that possible with the current setup?

Thanks,

Rory.

@scolladon
Copy link
Owner

Hi @rory-webber,

This is currently not possible with just one call of sgd. as no parameters allow this behavior.
But you could achieve the same thing with a script of your own.
Here is how I would do this :

  1. call sgd in loop with --from and --to (where --to is the commit you want to evaluate and --from is <to>~1)
  2. merge the generated package.xml

@mcarvin8
Copy link
Contributor

If you need to merge packages together into 1, suggest trying this out - https://github.com/mcarvin8/sf-package-combiner

@mehdicherf mehdicherf added the question Further information is requested label Apr 1, 2025
@scolladon
Copy link
Owner

It looks like a scenario where you want to cherry pick commits to do a hotfix per exemple.
You create a branch from the base branch and cherry pick all the commit you need for the hotfix release
And the use sgd to create the incremental package.

If your ok with that I close this question

Feel free to reopen it if you want to discuss more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants