Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. The deployPackager.properties is configured with the sqlScmLastImportID from main branch.

  2. Branch_A is created from main branch.

  3. Branch_B is created from main branch.

  4. Branch_A packages successfully and the deployPackager.properties is updated by Liquibase Enterprise with a new sqlScmLastImportID located on Branch_A.

  5. Branch_B does not have the new sqlScmLastImportID directly in it’s git commit history, but this commit can be located by git log because it shares a common ancestor.

 Git command

The git command used to get the history of commits on a branch is below.

git log --reverse --pretty=format:'%h, %an, %s' --abbrev-commit <sqlScmLastImportID>..HEAD

By default, git log collects all commits starting from the current branch tip and traverses back through all ancestors. It will return all reachable commits in the current branch’s history.

...