8000 Shallow (#6396) with some fixes from review by ethomson · Pull Request #6557 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content

Shallow (#6396) with some fixes from review #6557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 98 commits into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
0668384
repo: basic graft API
tiennou Aug 2, 2018
919501a
repo: load grafts on open
tiennou Aug 2, 2018
3c17f22
repo: load shallow roots
tiennou Oct 10, 2019
a8b1d51
repo: graft shallow roots on open
tiennou Aug 2, 2018
a35cc40
commit: apply grafts when parsing
tiennou Aug 2, 2018
d54c008
tests: graft commits
tiennou Aug 2, 2018
22f201b
grafts: make the structure self-contained and opaque
pks-t Oct 3, 2019
14a309a
repository: convert grafts parsing to use parse context
pks-t Oct 3, 2019
05e286f
grafts: move parsing into grafts module
pks-t May 12, 2020
a11026e
repository: reuse grafts for shallow roots
pks-t Oct 24, 2019
70867f7
repository: disentangle shallow and normal grafts
pks-t Oct 3, 2019
fd2398b
grafts: move refresh logic into grafts code
10000 pks-t Oct 3, 2019
a4803c3
grafts: fix memory leak if replacing pre-existing graft
pks-t Oct 10, 2019
79af067
repository: do not expose grafting mechanism
pks-t Oct 24, 2019
e07aa9c
Merge branch 'main' into pr/pks-t/5254
lya001 Jun 24, 2022
13bd14d
add feature flag for shallow clone support
Jun 27, 2022
7a93625
add test for shallow feature flag
Jun 27, 2022
89494f6
add shallow.h
Jun 27, 2022
562246b
move declaration of feature flag to graft.h/graft.c
Jun 27, 2022
6bab22f
move feature flag tests to tests/grafts/shallow.c
Jun 27, 2022
ad56355
use shallow feature flag in shallow clone support source code
Jun 27, 2022
c4cd9a5
correct naming of feature flag
Jun 27, 2022
5918975
disable shallow clone support by default
Jun 28, 2022
397753f
enable shallow clone support in tests when necessary
Jun 28, 2022
9d1507d
correct use of feature flag
Jun 28, 2022
06eacb9
fix graft assertion
Jun 28, 2022
70a332a
disable shallow clone feature flag in test cleanup
Jun 28, 2022
afa79ca
Merge branch 'pr/tiennou/4747' into transportPR
Jul 4, 2022
10e2573
attempt to build
Jul 5, 2022
3e64f15
rewrite shallow_root
Jul 7, 2022
c652f3d
enable cloning of shallow repo
Jul 19, 2022
f19ffc8
add test for shallow repo depth 1
Jul 19, 2022
7f46bfa
unset GIT_RAND_GETENTROPY to avoid linux GLIBC issues (#3)
lya001 Jul 26, 2022
52ba17f
Merge branch 'pr/pks-t/5254' into shallow-clone-local
Jul 26, 2022
83f71b1
fix build errors
Jul 26, 2022
cfc2ae6
eliminate build warnings
Jul 27, 2022
c01b784
improve error handling
Jul 28, 2022
14d2a60
fix load_grafts
Jul 28, 2022
62cc77a
refactor commit parent assignment with graft
Jul 28, 2022
a544a91
rename function assign_parents_from_graft
Jul 28, 2022
3d7a609
Merge pull request #4 from lya001/shallow-clone-local
lya001 Jul 29, 2022
09acf69
Merge branch 'mw_dev' into shallow-clone-local
lya001 Jul 29, 2022
a491917
Merge pull request #5 from mathworks/shallow-clone-local
lya001 Jul 29, 2022
68bbcef
Merge branch 'transportPR' into shallow-clone-network
Jul 29, 2022
73d25f0
remove build errors
Jul 29, 2022
598ec30
eliminate build warnings
Jul 29, 2022
179aac7
fix clone::shallow test behaviour
Jul 29, 2022
e7294e8
fix memory leaks about packets
Aug 1, 2022
2d33fe7
refactor git_fetch_option.depth and usage
Aug 2, 2022
4536477
fix memory leak
Aug 2, 2022
e93d081
attempt to fix nego.shallowarray memory leak
Aug 2, 2022
da04d3f
fix grafts and shallowarray memory leaks
Aug 2, 2022
8ef492f
fix build warning
Aug 2, 2022
829555a
edit tests for shallow clones
Aug 2, 2022
09b3d33
fix memory leak
Aug 9, 2022
df5eb32
support fetch unshallow option on shallow repos
Aug 9, 2022
49e641b
remove unused api
Aug 11, 2022
8b521f0
document unshallow behaviour in fetch.c
Aug 11, 2022
7c2b1f4
Merge pull request #6 from lya001/shallow-clone-network
lya001 Aug 11, 2022
a3bfd28
Use GIT_OID_SHA1_HEXSIZE
lya001 Aug 31, 2022
01cb90b
restore GIT_RAND_GETENTROPY
lya001 Aug 31, 2022
b20f013
restore getentropy
lya001 Aug 31, 2022
f1f9b45
fix test failures
lya001 Aug 31, 2022
6c46b58
include oid.h in grafts.c
lya001 Aug 31, 2022
4cf19ad
refactor smart_pkt
lya001 Aug 31, 2022
d0eba8a
fix shallowarray test
lya001 Aug 31, 2022
89c1b01
fix free error
lya001 Aug 31, 2022
34de5c8
fix seg faults
lya001 Sep 5, 2022
7122fcd
fix depth initialisation
lya001 Sep 5, 2022
47f36a9
fix error handling
lya001 Sep 5, 2022
d23a790
remove unused statements
lya001 Sep 5, 2022
4f2f91a
fix shallow array search
lya001 Sep 6, 2022
a9793ac
refactor grafts tests
lya001 Sep 6, 2022
570ef74
Merge commit 'd066d0d95c43e97df6624292f3f527f9372ca8fe'
lrm29 Mar 10, 2023
1cc2979
Fix merge error
lrm29 Mar 10, 2023
2da3e8c
Remove stray comma
lrm29 Mar 10, 2023
d935773
Remove unused git_transport_flags_t
lrm29 Mar 10, 2023
79ed94e
Apply suggestions from code review
lrm29 Mar 10, 2023
e3bf6db
Merge branch 'shallow-clone-network' of https://github.com/mathworks/…
lrm29 Mar 10, 2023
5b71133
Update src/libgit2/fetch.c
lrm29 Mar 10, 2023
e288f87
Remove unnecessary include.
lrm29 Mar 13, 2023
190a4c5
Merge remote-tracking branch 'origin/main' into shallow-clone-network
ethomson Apr 22, 2023
dd15c61
shallow: remove feature flag
ethomson Apr 22, 2023
6cec01b
shallow: move tests to online
ethomson Apr 22, 2023
4827349
shallow: use GIT_ASSERT (not assert)
ethomson Apr 22, 2023
3853ba8
smart: validate shallow/unshallow pkts
ethomson Apr 22, 2023
72139ef
shallow: don't assume SHA1
ethomson Apr 22, 2023
d69c7a7
transport: transports understand oid type
ethomson Apr 24, 2023
8f7fc2e
shallow: avoid unnecessary pkt free
ethomson Apr 24, 2023
6a02b45
futils: use SHA256 for checksums always
ethomson Apr 24, 2023
69592bd
grafts: use `git_parse` to parse object IDs
ethomson Apr 24, 2023
7d7f305
grafts: handle SHA256 graft files
ethomson Apr 24, 2023
3388f5b
shallow: don't default to -1 for depth
ethomson Apr 25, 2023
19ccab0
shallow: cleanup whitespace in tests
ethomson Apr 25, 2023
43db928
grafts: make `from_file` be `open_or_refresh`
ethomson Apr 25, 2023
04cddff
cli: add --depth option to clone
ethomson Apr 25, 2023
0a7e32b
oid: use an oid array instead of shallowarray
ethomson May 8, 2023
437c5f5
fetch: remove `unshallow` option
ethomson May 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
enable shallow clone support in tests when necessary
  • Loading branch information
Yuang Li committed Jun 28, 2022
commit 397753f01701ed7e5148f147e3a126a0abbd33e4
1 change: 1 addition & 0 deletions tests/grafts/basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ static git_repository *g_repo;

void test_grafts_basic__initialize(void)
{
git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 1);
g_repo = cl_git_sandbox_init("grafted.git");
}

Expand Down
8C5A
1 change: 1 addition & 0 deletions tests/grafts/shallow.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ void test_grafts_shallow__unset_feature_flag(void)

void test_grafts_shallow__initialize(void)
{
git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 1);
cl_git_pass(git_oid_fromstr(&g_shallow_oid, "be3563ae3f795b2b4353bcce3a527ad0a4f7f644"));
}

Expand Down
0