File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ func (g *Git) Fetch(opts ...string) *command.Model {
47
47
return g .command (args ... )
48
48
}
49
49
50
- // Checkout switchs branches or restore working tree files.
50
+ // Checkout switches branches or restore working tree files.
51
51
// Arg can be a commit hash, a branch or a tag.
52
52
func (g * Git ) Checkout (arg string ) * command.Model {
53
53
return g .command ("checkout" , arg )
@@ -173,3 +173,11 @@ func (g *Git) SparseCheckoutSet(opts ...string) *command.Model {
173
173
args = append (args , opts ... )
174
174
return g .command (args ... )
175
175
}
176
+
177
+ // UpdateRef updates the object name stored in a ref safely.
178
+ // With -d flag, it deletes the named <ref>.
179
+ func (g * Git ) UpdateRef (opts ... string ) * command.Model {
180
+ args := []string {"update-ref" }
181
+ args = append (args , opts ... )
182
+ return g .command (args ... )
183
+ }
You can’t perform that action at this time.
0 commit comments