all repos

mugit @ 48f24d9

馃惍 git server that your cow will love
2 files changed, 4 insertions(+), 4 deletions(-)
cli: set-default ->  set-head
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-03-21 19:11:20 +0200
Authored at: 2026-03-21 19:08:23 +0200
Change ID: wrtxtlunsprsomnymvyzwwtrlxwtxppv
Parent: 7073ff2
M internal/cli/cli.go
路路路
        91
        91
         						},

      
        92
        92
         					},

      
        93
        93
         					{

      
        94
        
        -						Name:   "set-default",

      
        95
        
        -						Usage:  "switch default repo branch",

      
        96
        
        -						Action: c.repoSetDefaultAction,

      
        
        94
        +						Name:   "set-head",

      
        
        95
        +						Usage:  "switches repo's head to specified branch",

      
        
        96
        +						Action: c.repoSetHeadAction,

      
        97
        97
         						Arguments: []cli.Argument{

      
        98
        98
         							&cli.StringArg{Name: "name"},

      
        99
        99
         						},

      
M internal/cli/repo.go
路路路
        112
        112
         	return nil

      
        113
        113
         }

      
        114
        114
         

      
        115
        
        -func (c *Cli) repoSetDefaultAction(ctx context.Context, cmd *cli.Command) error {

      
        
        115
        +func (c *Cli) repoSetHeadAction(ctx context.Context, cmd *cli.Command) error {

      
        116
        116
         	name, err := c.getRepoNameArg(cmd)

      
        117
        117
         	if name == "" {

      
        118
        118
         		return err