git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH 0/2] clone: record submodule alternates when not recursing
@ 2017-04-11 19:46 Stefan Beller
  2017-04-11 19:46 ` [PATCH 1/2] submodule.c: add has_submodules to check if we have any submodules Stefan Beller
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Stefan Beller @ 2017-04-11 19:46 UTC (permalink / raw)
  To: bmwill, maxime.viargues; +Cc: git, Stefan Beller

The meat is in the second patch:
    The commit 31224cbdc7 (clone: recursive and reference option triggers
    submodule alternates, 2016-08-17) argued for any further `submodule update`
    to respect the initial setup. This is not the case if you only pass
    '--reference[-if-able]' to the initial clone without instructing to
    recurse into submodules.
    
    If there are submodules however the user is likely to later run
    a 'submodule update --init' to obtain the submodules. In this case we
    also want to have the references available.

The first patch produces a nice helper function and some refactoring.

Thanks,
Stefan

Stefan Beller (2):
  submodule.c: add has_submodules to check if we have any submodules
  clone: remember references for submodules even when not recursing

 builtin/checkout.c          |  2 +-
 builtin/clone.c             |  8 +++--
 builtin/fetch.c             |  2 +-
 builtin/read-tree.c         |  2 +-
 builtin/submodule--helper.c |  6 ++--
 submodule.c                 | 78 +++++++++++++++++++++++++++++++++++----------
 submodule.h                 |  8 ++++-
 unpack-trees.c              |  2 +-
 8 files changed, 82 insertions(+), 26 deletions(-)

-- 
2.12.2.575.gb14f27f917


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

end of thread, other threads:[~2017-04-20 22:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-11 19:46 [PATCH 0/2] clone: record submodule alternates when not recursing Stefan Beller
2017-04-11 19:46 ` [PATCH 1/2] submodule.c: add has_submodules to check if we have any submodules Stefan Beller
2017-04-20 22:07   ` Brandon Williams
2017-04-20 22:20     ` Stefan Beller
2017-04-20 22:25       ` Brandon Williams
2017-04-11 19:46 ` [PATCH 2/2] clone: remember references for submodules even when not recursing Stefan Beller
2017-04-20 22:12   ` Brandon Williams
2017-04-20 22:28     ` Stefan Beller
2017-04-19 19:52 ` [PATCH 0/2] clone: record submodule alternates " Stefan Beller

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).