Utility to check if all commits in a git source branch are represented as ports in the target branch
portcheck [-v] <source-ref> [<target-ref>]
-v
: enables verbose modesource-ref
: branch or other ref containing commits that require porttarget-ref
: branch or other ref containing port commits (defaults toHEAD
)
Ports of commit commit-sha
are detected by having one of the following lines in the commit message:
(ported from commit <commit-sha>)
(cherry picked from commit <commit-sha>)
The commit-sha
must be the complete SHA of the commit as returned by git rev-parse <ref>
. The search is case insensitive.
The latter line can be generated by git when cherry picking by using the -x
flag: git cherry-pick -x <commit sha>
.