aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/internal/dotgit/dotgit_rewrite_packed_refs_nix.go
blob: af961965472a86b1e3c6ce4db6e04b2bcf249465 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// +build !windows

package dotgit

import "gopkg.in/src-d/go-billy.v4"

func (d *DotGit) rewritePackedRefsWhileLocked(
	tmp billy.File, pr billy.File) error {
	// On non-Windows platforms, we can have atomic rename.
	return d.fs.Rename(tmp.Name(), pr.Name())
}