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

Re: [PATCH v4] diff-lib: honor override_submodule_config flag bit

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 14, 2023, 19:08 UTC
Message-ID
<xmqq5y7pyi8j.fsf@gitster.g>
In-Reply-To
<20230614164856.3186012-2-sokcevic@google.com>
Josip Sokcevic <sokcevic@google.com> writes:
Show 7 quoted lines
> When `diff.ignoreSubmodules = all` is set and submodule commits are
> manually staged (e.g. via `git-update-index`), `git-commit` should
> record the commit  with updated submodules.
>
> `index_differs_from` is called from `prepare_to_commit` with flags set to
> `override_submodule_config = 1`. `index_differs_from` then merges the
> default diff flags and passed flags.
Great.  Will queue.  Thanks.
Show 9 quoted lines
> When `diff.ignoreSubmodules` is set to "all", `flags` ends up having
> both `override_submodule_config` and `ignore_submodules` set to 1. This
> results in `git-commit` ignoring staged commits.
>
> This patch restores original `flags.ignore_submodule` if
> `flags.override_submodule_config` is set.
>
> Signed-off-by: Josip Sokcevic <sokcevic@google.com>
> ---
Previous: Josip Sokcevic
Message 2 of 2 in “diff-lib: honor override_submodule_config flag bit”
  1. diff-lib: honor override_submodule_config flag bitJosip Sokcevic, Jun 14, 2023
  2. Junio C HamanoJun 14, 2023

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.