git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/3] push only submodules

From
BWBrandon Williams <bmwill@google.com>
Date
Dec 19, 2016, 18:25 UTC
Message-ID
<1482171933-180601-1-git-send-email-bmwill@google.com>

This series teaches 'git push' to be able to only push submodules while leaving a superproject unpushed.

This is a desirable feature in a scenario where updates to the superproject are handled automatically by some other means, perhaps a code review tool. In this scenario a developer could make a change which spans multiple submodules and then push their commits for code review. Upon completion of the code review, their commits can be accepted and applied to their respective submodules while the code review tool can then automatically update the superproject to the most recent SHA1 of each submodule. This would eliminate the merge conflicts in the superproject that could occur if multiple people are contributing to the same submodule.

Brandon Williams (3):
  transport: refactor flag #defines to be more readable
  submodules: add RECURSE_SUBMODULES_ONLY value
  push: add option to push only submodules
 builtin/push.c                 |  2 ++
 submodule-config.c             |  2 ++
 submodule.h                    |  1 +
 t/t5531-deep-submodule-push.sh | 21 +++++++++++++++++++++
 transport.c                    | 15 +++++++++++----
 transport.h                    | 31 ++++++++++++++++---------------
 6 files changed, 53 insertions(+), 19 deletions(-)
-- 
2.8.0.rc3.226.g39d4020
Next: Brandon Williams
Message 1 of 7 in “push only submodules”
  1. 0/3 push only submodulesBrandon Williams, Dec 19, 2016
  2. 1/3 transport: refactor flag #defines to be more readableBrandon Williams, Dec 19, 2016
  3. 2/3 submodules: add RECURSE_SUBMODULES_ONLY valueBrandon Williams, Dec 19, 2016
  4. 3/3 push: add option to push only submodulesBrandon Williams, Dec 19, 2016
  5. Stefan BellerDec 19, 2016
  6. Junio C HamanoDec 19, 2016
  7. Junio C HamanoDec 20, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.