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:
go.modgo.summodules.txt
vendor
dario.cat
mergo
github.com
Microsoft
go-winio
ProtonMail
go-crypto
AUTHORSCONTRIBUTORSLICENSEPATENTSkey_generation.gokeys.gokeys_test_data.go
bitcurves
brainpool
eax
internal
byteutil
ocb
openpgp
aes
keywrap
armor
canonical_text.goecdh
ecdsa
ed25519
ed448
eddsa
elgamal
errors
hash.gointernal
algorithm
ecc
encoding
packet
aead_config.goaead_crypter.goaead_encrypted.gocompressed.goconfig.goconfig_v5.goencrypted_key.goliteral.gomarker.gonotation.goocfb.goone_pass_signature.goopaque.gopacket.gopacket_sequence.gopacket_unsupported.gopadding.goprivate_key.goprivate_key_test_data.gopublic_key.gopublic_key_test_data.goreader.gorecipient.gosignature.gosymmetric_key_encrypted.gosymmetrically_encrypted.gosymmetrically_encrypted_aead.gosymmetrically_encrypted_mdc.gouserattribute.gouserid.go
read.goread_write_test_data.gos2k
write.gox25519
x448
cloudflare
circl
LICENSE
dh
x25519
x448
ecc
goldilocks
internal
conv
sha3
math
sign
cyphar
filepath-securejoin
emirpasic
gods
containers
lists
trees
utils
go-git
gcfg
go-billy
golang
jesseduffield
go-git
v5
.gitignoreCOMPATIBILITY.mdCONTRIBUTING.mdEXTENDING.mdMakefileREADME.mdSECURITY.mdblame.gocommon.gohash.goreference.goprune.goreferences.goremote.gorepository.gosigner.gostatus.goworktree.goworktree_bsd.goworktree_commit.goworktree_js.goworktree_linux.goworktree_status.goworktree_unix_other.go
config
internal
object_walker.gooptions.gooss-fuzz.shplumbing
filemode
format
config
diff
gitignore
idxfile
index
objfile
packfile
common.godelta_index.godiff_delta.goencoder.gofsobject.gopackfile.goparser.gopatch_delta.goscanner.go
pktline
hash
memory.goobject.goobject
change.gochange_adaptor.gocommit.gocommit_walker_path.gocommon.gopatch.gorename.gosignature.gotag.gotree.gotreenoder.go
protocol
packp
storer
transport
storage
submodule.goutils
binary
ioutil
merkletrie
sync
trace
kevinburke
konsorten
go-windows-terminal-sequences
mitchellh
go-homedir
pjbgf
sha1cd
sergi
go-diff
diffmatchpatch
sirupsen
logrus
skeema
stretchr
testify
xanzy
golang.org
x
crypto
argon2
blake2b
blake2b.goblake2bAVX2_amd64.goblake2bAVX2_amd64.sblake2b_amd64.sblake2b_generic.goblake2b_ref.goblake2x.goregister.go
cryptobyte
hkdf
internal
openpgp
errors
keys.gopacket
config.goencrypted_key.goone_pass_signature.gopacket.goprivate_key.gopublic_key.gopublic_key_v3.goreader.gosignature.gosignature_v3.gosymmetric_key_encrypted.go
read.gos2k
write.gosha3
doc.gohashes.gohashes_noasm.gokeccakf.gokeccakf_amd64.gokeccakf_amd64.ssha3.gosha3_s390x.gosha3_s390x.sshake.goshake_noasm.go
ssh
exp
net
sys
51
vendor/github.com/jesseduffield/go-git/v5/utils/sync/bytes.go
generated
vendored
Normal file
51
vendor/github.com/jesseduffield/go-git/v5/utils/sync/bytes.go
generated
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
package sync
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"sync"
|
||||
)
|
||||
|
||||
var (
|
||||
byteSlice = sync.Pool{
|
||||
New: func() interface{} {
|
||||
b := make([]byte, 16*1024)
|
||||
return &b
|
||||
},
|
||||
}
|
||||
bytesBuffer = sync.Pool{
|
||||
New: func() interface{} {
|
||||
return bytes.NewBuffer(nil)
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
// GetByteSlice returns a *[]byte that is managed by a sync.Pool.
|
||||
// The initial slice length will be 16384 (16kb).
|
||||
//
|
||||
// After use, the *[]byte should be put back into the sync.Pool
|
||||
// by calling PutByteSlice.
|
||||
func GetByteSlice() *[]byte {
|
||||
buf := byteSlice.Get().(*[]byte)
|
||||
return buf
|
||||
}
|
||||
|
||||
// PutByteSlice puts buf back into its sync.Pool.
|
||||
func PutByteSlice(buf *[]byte) {
|
||||
byteSlice.Put(buf)
|
||||
}
|
||||
|
||||
// GetBytesBuffer returns a *bytes.Buffer that is managed by a sync.Pool.
|
||||
// Returns a buffer that is reset and ready for use.
|
||||
//
|
||||
// After use, the *bytes.Buffer should be put back into the sync.Pool
|
||||
// by calling PutBytesBuffer.
|
||||
func GetBytesBuffer() *bytes.Buffer {
|
||||
buf := bytesBuffer.Get().(*bytes.Buffer)
|
||||
buf.Reset()
|
||||
return buf
|
||||
}
|
||||
|
||||
// PutBytesBuffer puts buf back into its sync.Pool.
|
||||
func PutBytesBuffer(buf *bytes.Buffer) {
|
||||
bytesBuffer.Put(buf)
|
||||
}
|
Reference in New Issue
Block a user