MCPcopy
hub / github.com/git-lfs/git-lfs / postCheckoutFileChange

Function postCheckoutFileChange

commands/command_post_checkout.go:69–77  ·  view source on GitHub ↗
(client *locking.Client)

Source from the content-addressed store, hash-verified

67}
68
69func postCheckoutFileChange(client *locking.Client) {
70 tracerx.Printf("post-checkout: checking write flags for all lockable files")
71 // Sadly we don't get any information about what files were checked out,
72 // so we have to check the entire repo
73 err := client.FixAllLockableFileWriteFlags()
74 if err != nil {
75 LoggedError(err, tr.Tr.Get("Warning: post-checkout locked file check failed: %v", err))
76 }
77}
78
79func init() {
80 RegisterCommand("post-checkout", postCheckoutCommand, nil)

Callers 2

postCheckoutCommandFunction · 0.85
postCheckoutRevChangeFunction · 0.85

Calls 3

LoggedErrorFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected