diff options
| author | Kyle Meyer <kyle@kyleam.com> | 2022-01-17 21:08:31 -0500 |
|---|---|---|
| committer | Kyle Meyer <kyle@kyleam.com> | 2022-01-23 16:30:36 -0500 |
| commit | f8f938352d71680b533a8cf21dcada0809cdb51a (patch) | |
| tree | d5ca5add7153715728a7f3ba1b2d7e3f871c6945 /docs/RelNotes | |
| parent | d1a3c60a9eee28c4678d81aef93392c3283ddc22 (diff) | |
magit-clone-sparse: New command
When the goal is to do a sparse checkout after cloning a repo, it's
possible to avoid checking out undesired files on the initial clone:
$ git clone --no-checkout ...
$ git sparse-checkout init --cone
$ git checkout $BRANCH
Doing that probably isn't very common, so it's tempting to add
--no-checkout to the magit-clone transient and then let users handle
the sequence themselves. However
* it seems unlikely that many people would remember that sequence
* those steps don't work well in Magit because, after the `clone
--no-checkout` step, refreshing the status buffer will get hung up
on all the "deleted" files. That's true even with a repo of
normal size, but it seems reasonable to expect larger target repos
in the sparse checkout context.
Add a dedicated command that hooks into magit-clone-internal to enable
a sparse checkout before a refresh is attempted.
Diffstat (limited to 'docs/RelNotes')
| -rw-r--r-- | docs/RelNotes/3.4.0.org | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/RelNotes/3.4.0.org b/docs/RelNotes/3.4.0.org index 3572db3..86fa3c3 100644 --- a/docs/RelNotes/3.4.0.org +++ b/docs/RelNotes/3.4.0.org @@ -16,6 +16,10 @@ - New transient ~magit-sparse-checkout~ provides an interface to the ~git sparse-checkout~ command, introduced in Git v2.25. #4102 +- New command ~magit-clone-sparse~ makes it possible to clone a + repository and then immediately enable a sparse checkout, avoiding a + checkout of the full working tree. #4102 + ** Fixes since v3.3.0 - Automatic saving of file-visiting buffers was broken inside remote |
