| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Add port to SCP Endpoints
|
| |
| |
| |
| | |
URLs should be user@server:port/path instead of user@server:port:path
|
|/
|
|
|
|
| |
The port for SCP-like URLs was hardcoded to 22.
This commit modifies the regex to find a port (optional), and adds a new test
case that covers this scenario.
|
|\
| |
| | |
revlist: do not revisit ancestors as long as all branches are visited
|
|/
|
|
|
|
|
|
|
|
| |
This change is the fixed version of the previous performance improvement
that was reverted due to some bogus logic.
Now it's fixed and only stops the iteration if and only if all of the
branches we've come across have been visited, being a branch a parent
commit of a commit we've visited.
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
|
|\
| |
| | |
plumbing: the commit walker can skip externally-seen commits
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When the revlist is computing the set of hashes needed to transfer, it
doesn't need to walk over commits it has already processed. So, it
can instruct the commit walker not to walk those commits by passing in
its own `seen` map.
For a 36K object repo, this brought the time for `revlist.Objects`
down from 50s to 30s.
|
|\ \
| |/
|/| |
config: support a configurable, and turn-off-able, pack.window
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
One use of go-git is to transfer git data from a non-standard git repo
(not stored in a file system, for example) to a "remote" backed by a
standard, local .git repo.
In this scenario, delta compression is not needed to reduce transfer
time over the "network", because there is no network. The underlying
storage layer has already taken care of the data tranfer, and sending
the objects to local .git storage doesn't require compression. So this
PR gives the user the option to turn off compression when it isn't
needed.
Of course, this results in a larger, uncompressed local .git repo, but
the user can then run git gc or git repack on that repo if they care
about the storage costs.
Turning the pack window to 0 on reduces total push time of a 36K repo
by 50 seconds (out of a pre-PR total of 3m26s).
|
|\
| |
| | |
examples: update link to GoDoc in _examples/storage
|
|/
|
| |
Update like to storage GoDoc
|
|\
| |
| | |
revert: revlist: do not revisit already visited ancestors
|
|/
|
|
| |
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
|
| |
|
| |
|
|\
| |
| | |
packfile: improve performance of delta generation
|
| |
| |
| |
| | |
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
|
| |
| |
| |
| | |
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
|
| |
| |
| |
| | |
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
|
| |
| |
| |
| | |
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
|
| |
| |
| |
| | |
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
|
|\ \
| |/
|/| |
Minor fix to grammatical error in error message for ErrRepositoryNotExists
|
|/ |
|
|\
| |
| | |
remote: iterate over references only once
|
|/
|
|
| |
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
|
|\
| |
| | |
revlist: do not visit again already visited parents
|
| |
| |
| |
| | |
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
|
|/ |
|
|\
| |
| | |
packfile: improve performance a little by reducing gc pressure
|
|/
|
|
| |
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
|
|\
| |
| | |
Repository.Clone added Tags option, and set by default AllTags
|
| | |
|
|/ |
|
|\
| |
| | |
Add sideband support for push
|
| | |
|
|\ \
| |/
|/| |
Worktree.Reset refactor and Soft, Merge, Hard and Mixed modes
|
|/ |
|
|\
| |
| | |
dotgit: avoid duplicated references returned by Refs
|
|/
|
|
| |
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
|
|\
| |
| | |
remote: avoid expensive revlist operation when only deleting refs
|
| | |
|
|\ \
| |/
|/| |
plumbing: use sliding window in delta calculations, like git CL
|
|/
|
|
|
|
|
|
|
|
| |
This sets a default sliding window of 10 for the delta calculation,
just like git CL:
https://git-scm.com/docs/git-pack-objects#git-pack-objects---windowltngt
For a big-ish repo with 35K objects (17K commits), this reduced the
time for calling `deltaSelection.walk` during a push from more than 14
minutes to about a minute.
|
|\
| |
| | |
plumbing: use LookPath instead of Stat to fix Windows executables
|
| |
| |
| |
| |
| |
| | |
When git-core isn't in the user's PATH, we need to use `LookPath` to
verify the existence of the executable, rather than `os.Stat`, so that
on Windows it will search for files with executable suffixes.
|
|\ \
| |/
|/| |
plumbing: use `seen` map in tree walker
|
|/
|
|
|
|
|
| |
This helps avoids iterating down the same trees for every commit. For
a big-ish repo with 35K objects (17K commits), this reduced the time
for calling `revlist.Objects` during a push (with 0 hashes to ignore)
from more than ten minutes to less than a minute.
|
|\
| |
| | |
repository: Resolve commit when cloning annotated tag, fixes #557
|
| | |
|
|\ \
| |/
|/| |
dotgit: rewrite the way references are looked up
|