mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-23 00:39:13 +02:00
Bump go-git
This commit is contained in:
13
vendor/github.com/go-git/go-billy/v5/osfs/os_posix.go
generated
vendored
13
vendor/github.com/go-git/go-billy/v5/osfs/os_posix.go
generated
vendored
@ -1,9 +1,11 @@
|
||||
// +build !plan9,!windows
|
||||
//go:build !plan9 && !windows && !wasm
|
||||
// +build !plan9,!windows,!wasm
|
||||
|
||||
package osfs
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
@ -25,3 +27,12 @@ func (f *file) Unlock() error {
|
||||
func rename(from, to string) error {
|
||||
return os.Rename(from, to)
|
||||
}
|
||||
|
||||
// umask sets umask to a new value, and returns a func which allows the
|
||||
// caller to reset it back to what it was originally.
|
||||
func umask(new int) func() {
|
||||
old := syscall.Umask(new)
|
||||
return func() {
|
||||
syscall.Umask(old)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user