Skip to contents

Compare content of two branches

Usage

compare_branch_content(
  owner = getOption("pipfun.ghowner"),
  repo,
  branch1 = "main",
  branch2 = "dev"
)

Arguments

owner

owner of repo

repo

character: name of repository

branch1

character: name of one branch

branch2

character: name of the other branch

Value

list of 3 elements: tree sha of branch 1, tree sha of branch 2 and "same content" (TRUE if branches have same content, FALSE otherwise)

Examples

if (FALSE) { # \dontrun{
# Different content
compare_branch_content(repo   = "aux_ppp",
                      branch1 = "DEV",
                      branch2 = "DEV_v2")

} # }