BlueGit

timfa bluegit

fix: gebruik CommitFileChanges voor de linkkaart

De kaart las de diff via de oude naam, die nu een commit schrijft.

Co-authored-by: tim <tim@timfalken.com>

timfa project_87923614_bot_3aff574f6f98414b945a8799374f9092 · pushed by timfa

Authored 2026-10-23 · 3 weeks ago

Hash
ece85aa0188270014384b0828c024a3e1ff67328
Parent
0741fde9
1 file changed +1 −1
internal/server/social.go +1 −1
@@ -234,7 +234,7 @@ func (s *Server) commitCard(ctx context.Context, repo store.Repo, sha, page, img
234 234 short = short[:8]
235 235 }
236 236 facts := []string{c.Author, short}
237 if changes, err := gitrepo.CommitChanges(ctx, s.Git, dir, c.SHA); err == nil {
237 if changes, err := gitrepo.CommitFileChanges(ctx, s.Git, dir, c.SHA); err == nil {
238 238 add, del := 0, 0
239 239 for _, ch := range changes {
240 240 add += ch.Added
@@ -234,7 +234,7 @@ func (s *Server) commitCard(ctx context.Context, repo store.Repo, sha, page, img
234 short = short[:8]
234 short = short[:8]
235 }
235 }
236 facts := []string{c.Author, short}
236 facts := []string{c.Author, short}
237 if changes, err := gitrepo.CommitChanges(ctx, s.Git, dir, c.SHA); err == nil {
237 if changes, err := gitrepo.CommitFileChanges(ctx, s.Git, dir, c.SHA); err == nil {
238 add, del := 0, 0
238 add, del := 0, 0
239 for _, ch := range changes {
239 for _, ch := range changes {
240 add += ch.Added
240 add += ch.Added