func (r *fileRepo) lockFile(p string) (*lockfile.Lockfile, error) {
	if !r.canLock {
		return nil, nil
	}

	l, err := lockfile.New(p)
	return &l, err
}
// lockFile will lock the given file and returns it IF the filesystem currently initialized allows locking. It will return
// a nil lockfile (which is valid) if no locking is possible.
lockFile will lock the given file and returns it IF the filesystem currently initialized allows locking. It will return
a nil lockfile (which is valid) if no locking is possible.
// lockFile will lock the given file and returns it IF the filesystem currently initialized allows locking . It will return // a nil lockfile ( which is valid ) if no locking is possible .
func (r *fileRepo) lockFile(p string) (*lockfile.Lockfile, error) {
	if !r.canLock {
		return nil, nil
	}
	l, err := lockfile.New(p)
	return &l, err
}
func ( r * fileRepo ) lockFile ( p string ) ( * lockfile . Lockfile , error ) { if ! r . canLock { return nil , nil } l , err := lockfile . New ( p ) return & l , err }
lockFile will lock the given file and returns it IF the filesystem currently initialized allows locking.
lockFile will lock the given file and returns it IF the filesystem currently initialized allows locking .