| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
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
|
| |
| |
| |
| |
| |
| | |
Now there's only two ways of getting a reference, by checking under refs/ directory or in packed-refs. refs/ directory is checked using a direct read by reference name and packed refs are cached until they have been changed.
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
|
|/
|
| |
*stopped instead of stop
|
|\
| |
| | |
_examples: context
|
|/ |
|
|\
| |
| | |
packp: fixed encoding when HEAD is not a valid ref
|
|/ |
|
|\
| |
| | |
examples: add example for pulling changes
|
|/ |
|
|\
| |
| | |
fix race condition on ObjectLRU
|
|/
|
|
| |
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
|
|\
| |
| | |
prevent PackWriter from using Notify if nothing was written
|
|/
|
|
| |
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
|
| |
|
|\
| |
| | |
*: windows support, skipped receive_pack_test for git transport
|
| | |
|
|\ \
| | |
| | | |
Avoid using user.Current()
|
| |/
| |
| |
| |
| | |
user.Current() causes 'Current not implemented' error when
crosscompiled. See https://github.com/golang/go/issues/6376
|
|\ \
| |/
|/| |
serialized remotes in alphabetical order
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fixed windows failed test: "143 FAIL: worktree_test.go:314: WorktreeSuite.TestFilenameNormalization"
* fixed windows failed test: "489: FAIL: auth_method_test.go:106: SuiteCommon.TestNewSSHAgentAuthNoAgent"
* fixed windows failed test: "279 FAIL: server_test.go:50: ServerSuite.TestClone"
fixed windows failed test: "298 FAIL: server_test.go:37: ServerSuite.TestPush"
* fixed windows failed test: "316 FAIL: <autogenerated>:26: UploadPackSuite.TearDownSuite"
* fixed windows failed test: "FAIL: <autogenerated>:6: IndexSuite.TearDownSuite"
|
|\
| |
| | |
plumbing: fix pack commands for the file client on Windows
|
| |
| |
| |
| |
| |
| | |
The default git install on Windows doesn't come with commands for
receive-pack and upload-pack in the default $PATH. Instead, use
--exec-path to find pack executables in that case.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* fixed windows failed test: "134 FAIL: repository_test.go:340: RepositorySuite.TestPlainOpenBareRelativeGitDirFileTrailingGarbage"
* fixed windows failed test: "143 FAIL: worktree_test.go:367: WorktreeSuite.TestCheckoutIndexOS"
* fixed windows failed test: "296 FAIL: receive_pack_test.go:36: ReceivePackSuite.TearDownTest"
* fixed windows failed test: "152 FAIL: worktree_test.go:278: WorktreeSuite.TestCheckoutSymlink"
|
|\ \
| | |
| | | |
Normalize filenames before comparing.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Some multibyte characters can have multiple representations. Before
comparing strings, we need to normalize them. In this case we're
normalizing to normalized form C, but it shouldn't matter as long as
both strings are normalized to the same form.
Fixes https://github.com/src-d/go-git/issues/495
|
|\ \ \
| | | |
| | | | |
Remote.Clone fix clone of tags in shallow mode
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
plumbing: moved `Reference.Is*` methods to `ReferenceName.Is*`
|
| | | | |
|
| | | | |
|
|\ \ \ \
| |_|/ /
|/| | | |
config: multiple values in RemoteConfig (URLs and Fetch)
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Do not change order of options (e.g. in RemoteConfig)
when serializing for any option whose value has not changed.
|
| | | |
| | | |
| | | |
| | | | |
This is more convenient for testing and debugging.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Change `URL string` to `URL []string` in `RemoteConfig`, since
git allows multiple URLs per remote. See:
http://marc.info/?l=git&m=116231242118202&w=2
* Fix marshalling of multiple fetch refspecs.
|
|\ \ \ \
| |_|/ /
|/| | /
| | |/
| |/| |
reuse Auth method when recursing submodules, fixes #521
|