Git development
 help / color / mirror / Atom feed
* Sparse checkout in worktree
@ 2015-11-25 12:40 Michael J Gruber
  2015-11-25 19:38 ` Duy Nguyen
  0 siblings, 1 reply; 6+ messages in thread
From: Michael J Gruber @ 2015-11-25 12:40 UTC (permalink / raw)
  To: Git Mailing List

Hi there,

I'm wondering how much it would take to enable worktree specific sparse
checkouts. From a superfluous look:

- $GIT_DIR/info/sparse_checkout needs to be worktree specific
- We don't have much tooling around sparse to speak of at all.

The endgoal would be to have something like

git checkout [--sparse <pattern>]...

which sets up the sparse_checkout file and "git worktree" to pass any
--sparse option on to "git checkout".

While in an ideal world we all have micro repos, in the real world we
often have larger repos with mostly independent subdirs. For a quick fix
on a side branch in a subdir, a new sparse worktree would be an ideal
lean solution.

As it is, "git stash save && git checkout" is leaner but interrupts the
workflow more, and a local "git clone" with links and alternates is
leaner, too, but conceptually overkill if you want to work quickly on an
existing side branch.

Cheers,
Michael

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-11-25 20:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-25 12:40 Sparse checkout in worktree Michael J Gruber
2015-11-25 19:38 ` Duy Nguyen
2015-11-25 19:44   ` Michael J Gruber
2015-11-25 20:17     ` Duy Nguyen
2015-11-25 20:44       ` Michael J Gruber
2015-11-25 20:50         ` Duy Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox