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

Re: [PATCH] git-submodule.sh: Support 'checkout' as a valid update command

From
Francesco Pretto <ceztko@gmail.com>
Date
Jan 7, 2014, 01:16 UTC
Message-ID
<CALas-ijKQgDQsoNd0yrFOntnV8cuQGz8KL2xNWtYqGxXLH9q=w@mail.gmail.com>
In-Reply-To
<xmqqtxdgfz8a.fsf@gitster.dls.corp.google.com>
2014/1/7 Junio C Hamano <gitster@pobox.com>:
> Sorry, but -ECANNOTPARSE.
>
A bird told me what -ECANNOTPARSE means. Tell me if this comment sounds better:

According to "Documentation/gitmodules.txt", 'checkout' is a valid 'submodule.<name>.update' mode. Also "git-submodule.sh" already refers to it and handles it correctly. Fix cmd_init() to also accept 'checkout' as valid update mode and add a similar validation in cmd_update(), issuing an error if the value read is unknown.

Previous: Francesco Pretto
Message 6 of 6 in “git-submodule.sh: Support 'checkout' as a valid update command”
  1. git-submodule.sh: Support 'checkout' as a valid update commandFrancesco Pretto, Jan 6, 2014
  2. Junio C HamanoJan 6, 2014
  3. Francesco PrettoJan 7, 2014
  4. Junio C HamanoJan 7, 2014
  5. Francesco PrettoJan 7, 2014
  6. Francesco PrettoJan 7, 2014

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.