all repos

mugit @ f492c42

馃惍 git server that your cow will love
6 files changed, 11 insertions(+), 6 deletions(-)
run gofumpt
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-06-10 11:31:03 +0300
Authored at: 2026-06-08 13:47:50 +0300
Change ID: pznpqnupplstolrpqxlryzswysztnpwz
Parent: 4af560c
M internal/cli/cli.go
路路路
        40
        40
         		},

      
        41
        41
         		Before: func(ctx context.Context, cmd *cli.Command) (context.Context, error) {

      
        42
        42
         			loadedCfg, err := config.Load(

      
        43
        
        -				config.PathOrDefault(cmd.String("config")))

      
        
        43
        +				config.PathOrDefault(cmd.String("config")),

      
        
        44
        +			)

      
        44
        45
         			if err != nil {

      
        45
        46
         				return ctx, err

      
        46
        47
         			}

      
M internal/git/diff.go
路路路
        159
        159
         

      
        160
        160
         	diff, err := parseNiceDiff(patch.String())

      
        161
        161
         	if err != nil {

      
        162
        
        - 		return nil, fmt.Errorf("parse tree diff %s..%s: %w", base, head, err)

      
        
        162
        +		return nil, fmt.Errorf("parse tree diff %s..%s: %w", base, head, err)

      
        163
        163
         	}

      
        164
        164
         	return diff, nil

      
        165
        165
         }

      
M internal/handlers/repo.go
路路路
        521
        521
         

      
        522
        522
         			default:

      
        523
        523
         				readmeContents = template.HTML(fmt.Sprintf(

      
        524
        
        -					`<pre class="raw">%s</pre>`, html.EscapeString(content)))

      
        
        524
        +					`<pre class="raw">%s</pre>`, html.EscapeString(content),

      
        
        525
        +				))

      
        525
        526
         			}

      
        526
        527
         			break

      
        527
        528
         		}

      
M internal/handlers/util.go
路路路
        43
        43
         		wrapped := wrapResponseWriter(w)

      
        44
        44
         		next.ServeHTTP(wrapped, r)

      
        45
        45
         

      
        46
        
        -		slog.Info("http request",

      
        
        46
        +		slog.Info(

      
        
        47
        +			"http request",

      
        47
        48
         			"method", r.Method,

      
        48
        49
         			"status", wrapped.status,

      
        49
        50
         			"path", r.URL.Path,

      
M internal/markdown/markdown.go
路路路
        25
        25
         			emoji.Emoji,

      
        26
        26
         			callout.CalloutExtention,

      
        27
        27
         			&relativeLink{},

      
        28
        
        -		))

      
        
        28
        +		),

      
        
        29
        +	)

      
        29
        30
         )

      
        30
        31
         

      
        31
        32
         func Render(repoName, repoRef, readmePath, readmeSource string) (string, error) {

      
M internal/markdown/relink.go
路路路
        78
        78
         

      
        79
        79
         func (m *relLinkTransformer) imageFromRepoTransformer(img *ast.Image) {

      
        80
        80
         	img.Destination = []byte(m.imageFromRepo(

      
        81
        
        -		string(img.Destination)))

      
        
        81
        +		string(img.Destination),

      
        
        82
        +	))

      
        82
        83
         }

      
        83
        84
         

      
        84
        85
         func (m *relLinkTransformer) imageFromRepo(dst string) string {