commits
plumbing: commit.StatsContext and fix for root commit
plumbing: object, Count stats properly when no new line added at the …
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
examples: commit, fixed minor typo in info statement
Signed-off-by: HashedDan <georgedanielmangum@gmail.com>
fix panic in object.Tree.FindEntry
travis: drop go1.10 add go1.12
Signed-off-by: David Pordomingo <David.Pordomingo.F@gmail.com>
fix missing error in bfsCommitIterator
add Repository.CreateRemoteAnonymous
transactional: implement storer.PackfileWriter
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Increase diffmatchcpatch timeout
Signed-off-by: Oleksii Shnyra <oleksii@global>
Signed-off-by: Vadim Markovtsev <vadim@sourced.tech>
git: remove potentially duplicate check for unstaged files
Fixes https://github.com/src-d/go-git/issues/1083
Signed-off-by: Vadim Markovtsev <vadim@sourced.tech>
Signed-off-by: Tobias Meinhardt <tobias.meinhardt89@gmail.com>
worktree: allow manual ignore patterns when no .gitignore is available
Signed-off-by: Fabian Sabau <fabian.sabau+git@gmail.com>
Signed-off-by: Fabian Sabau <fabian.sabau+git@gmail.com>
git: fix goroutine block while pushing a remote
On session.ReceivePack error the gororutine doing the encoding got
blocked either writing objects to the pipe or sending error to the done
channel. The problem did not cause a perceived problem but left blocked
goroutines.
Signed-off-by: Javi Fontan <jfontan@gmail.com>
plumbing/cache: check for empty cache list
If there is wrong data in the cache it may cause the eviction code to
empty the object list and cause a panic. This patch adds a check and
sets the cache usage to 0 when this happens.
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Signed-off-by: Jeremy Schlatter <jeremy.schlatter@gmail.com>
Signed-off-by: Jeremy Schlatter <jeremy.schlatter@gmail.com>
Remove Unicode normalization in difftree
Ignore missing references/objects on log --all
remote: speed up pushes when the "remote" repo is local
Signed-off-by: Antonio Jesus Navarro Perez <antnavper@gmail.com>
To mimic the actual standard git behavior, we must ignore references that are pointing to wrong/unexistent objects.
Signed-off-by: Antonio Jesus Navarro Perez <antnavper@gmail.com>
Issue: #909
Signed-off-by: Jeremy Stribling <strib@alum.mit.edu>
This factors out some URL-parsing code from the transport layer so it
can be used by config as well.
Issue: #909
Signed-off-by: Jeremy Stribling <strib@alum.mit.edu>
`ObjectsWithStorageForIgnores` is the same as `Objects`, but a
secondary storage layer can be provided, to be used to finding the
full set of objects to be ignored while finding the reachable objects.
This is useful when the main `s` storage layer is slow and/or remote,
while the ignore list is available somewhere local.
Issue: #909
Signed-off-by: Jeremy Stribling <strib@alum.mit.edu>
Fixes #1057
Signed-off-by: Vadim Markovtsev <vadim@sourced.tech>
worktree: add sentinel error for non-fast-forward pull
Signed-off-by: Alexey Smirnov <unlinkat@gmail.com>
packfile: get object size correctly for delta objects
storage: transactional, new storage with transactional capabilities
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
Signed-off-by: Jeremy Stribling <strib@alum.mit.edu>
storage/filesystem: check file object before using cache
If the cache is shared between several repositories getFromUnpacked can
erroneously return an object from other repository.
This decreases performance a little bit as there's an extra fs operation
when the object is in the cache but is correct when the cache is shared.
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Implement git log --all
Signed-off-by: kuba-- <kuba@sourced.tech>
Simplify return statement in receivePackNoCheck
Fixes #1035
Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
storage/dotgit: use fs capabilities in setRef
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Do not use tags to check if the filesystem is able to open files
in read/write mode.
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
`ObjectsWithStorageForIgnores` is the same as `Objects`, but a
secondary storage layer can be provided, to be used to finding the
full set of objects to be ignored while finding the reachable objects.
This is useful when the main `s` storage layer is slow and/or remote,
while the ignore list is available somewhere local.
Issue: #909
Signed-off-by: Jeremy Stribling <strib@alum.mit.edu>
If the cache is shared between several repositories getFromUnpacked can
erroneously return an object from other repository.
This decreases performance a little bit as there's an extra fs operation
when the object is in the cache but is correct when the cache is shared.
Signed-off-by: Javi Fontan <jfontan@gmail.com>