Diff view: include boundary commits.
In a nearly empty repo, you want to include the boundary commits for the
diff view list commit list.
diff --git a/git_tools/git_tools.go b/git_tools/git_tools.go
index eb91ae4..242a8de 100644
--- a/git_tools/git_tools.go
+++ b/git_tools/git_tools.go
@@ -258,7 +258,7 @@
}
// Use the determined range with the specified format for easy parsing
- cmd := exec.Command("git", "-C", repoDir, "log", "-n", "1000", "--oneline", "--decorate", "--pretty=%H%x00%s%x00%d", fromRange)
+ cmd := exec.Command("git", "-C", repoDir, "log", "--boundary", "-n", "1000", "--oneline", "--decorate", "--pretty=%H%x00%s%x00%d", fromRange)
out, err := cmd.CombinedOutput()
if err != nil {
return nil, fmt.Errorf("error executing git log: %w - %s", err, string(out))