INNER CODE UNIT · Go

commits

jesseduffield/lazygit · cmd/author_colors_repo/main.go:72

	commits := make([]commit, 0, len(extremes)*len(extremes)*numHues)
	for _, lightness := range extremes {
		for _, saturation := range extremes {
			for i := range numHues {
				hue := float64(i) / numHues
				author, actualHue := findAuthor(lightness, saturation, hue)
				subject := fmt.Sprintf("lightness %s, saturation %s, hue %.0f°", lightness, saturation, actualHue*360)
				commits = append(commits, commit{author: author, subject: subject})
			}
		}
	}

	if err := runGit("", nil, "init", "-q", path); err != nil {
		log.Fatal(err)
	}

	// Commit in reverse, so that the commits panel lists them in the order above
	startTime := time.Date(2026, 1, 1, 0, 0, 0, 0, time.UTC)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…