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

Re: [PATCH v4 0/4] git-submodule add: Add --local-branch option (summary)

From
W. Trevor King <wking@tremily.us>
Date
Nov 28, 2012, 16:53 UTC
Message-ID
<20121128165334.GA20483@odin.tremily.us>
In-Reply-To
<20121128130903.GB15786@odin.tremily.us>
On Wed, Nov 28, 2012 at 08:09:03AM -0500, W. Trevor King wrote:
> * A new 'submodule pull' for tracking the submodule's remote, which is
>   pulling --ff-only origin/$branch into a whatever state the submodule
>   is currently in.  If any changes were made to submodule $shas,
>   optionally commit them with a shortlog-generated commit message.

I thought of a better idea on the train. How about adding `--remote` to `submodule update` that overrides the gitlinked SHA-1 with the SHA-1 for origin/$branch? All of the other checkout/merge/rebase functionality is untouched. The only thing that changes is where we look for the update. I'm working up the patch now, and will submit v5 shortly.

-- 
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
Previous: W. Trevor KingNext: W. Trevor King
Message 2 of 5 in “Re: [PATCH v4 0/4] git-submodule add: Add --local-branch option (summary)”
  1. W. Trevor KingNov 28, 2012
  2. W. Trevor KingNov 28, 2012
  3. 0/2 submodule update: add --remote for submodule's upstream changesW. Trevor King, Nov 28, 2012
  4. 1/2 submodule update: add --remote for submodule's upstream changesW. Trevor King, Nov 28, 2012
  5. 2/2 submodule add: If --branch is given, record it in .gitmodulesW. Trevor King, Nov 28, 2012

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.