summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-05 01:53:01 -0500
committerJeff Carr <[email protected]>2025-09-05 01:53:01 -0500
commit658a2ce1a2fc83e63ceb5ce11daaec6a5179ec89 (patch)
tree0a36039f7d9700507de1a665fa04d83619397e41
parentdb05f8a8aa8863cb858e190c7f047bd2e686cd6d (diff)
make something to get the hashes betwen branches
-rw-r--r--branches.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/branches.go b/branches.go
index 2788300..4fa85b8 100644
--- a/branches.go
+++ b/branches.go
@@ -64,6 +64,18 @@ func (repo *Repo) GetTagHash(t string) string {
return result.Stdout[0]
}
+// lookup a hash from a tag with 'git rev-list'
+func (repo *Repo) GetBranchDifferences(from string, to string) []string {
+ // git rev-list -n 1 v0.0.66
+ cmd := []string{"git", "rev-list", to + "..." + from}
+ result, _ := repo.RunStrict(cmd)
+ // log.Info("getLastTagVersion()", result.Stdout)
+
+ // tmp := strings.TrimSpace(strings.Join(result.Stdout, "\n"))
+ // return shell.SplitNewLines(tmp)
+ return result.Stdout
+}
+
// deletes the devel local branch if it is a subset of the remote devel branch
func (repo *Repo) DeleteLocalDevelBranch() error {
branch := repo.GetDevelBranchName()