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

Re: [PATCH 3/3] push: add option to push only submodules

From
Stefan Beller <sbeller@google.com>
Date
Dec 19, 2016, 18:56 UTC
Message-ID
<CAGZ79kbc_o-B4nX8T1WN4z2PrpSHmrFBskeRA1rbdkzdnv2okw@mail.gmail.com>
In-Reply-To
<1482171933-180601-4-git-send-email-bmwill@google.com>
On Mon, Dec 19, 2016 at 10:25 AM, Brandon Williams <bmwill@google.com> wrote:
Show 6 quoted lines
> Teach push the --recurse-submodules=only option.  This enables push to
> recursively push all unpushed submodules while leaving the superproject
> unpushed.
>
> This is a desirable feature in a scenario where updates to the
> superproject are handled automatically by some other means, perhaps a
e.g. Gerrit. (No need to be shy about our code review tool)
Show 9 quoted lines
>
> 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.

Code and tests look good to me, I think the commit message is good enough, but let's hear Junio on this one.

Thanks, Stefan

Previous: Brandon WilliamsNext: Junio C Hamano
Message 5 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.