(client *locking.Client)
| 67 | } |
| 68 | |
| 69 | func 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 | |
| 79 | func init() { |
| 80 | RegisterCommand("post-checkout", postCheckoutCommand, nil) |
no test coverage detected