git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: David Turner <novalis@novalis.org>
To: David Turner <dturner@twosigma.com>, git@vger.kernel.org
Subject: Re: [PATCH v3 3/3] diff --submodule=diff: Don't print failure message twice
Date: Mon, 30 Aug 2021 09:45:56 -0400	[thread overview]
Message-ID: <d14d2c180f59b9115754318e4d3567a404769d06.camel@novalis.org> (raw)
In-Reply-To: <20210812001332.715876-3-dturner@twosigma.com>

I keep seeing these as "will merge to next?" in the "what's cooking"
emails.  But I don't see any direct replies, and they don't seem to be
merged.  Is there something I need to do to get these merged?

Thanks.

On Wed, 2021-08-11 at 20:13 -0400, David Turner wrote:
> When we fail to start a diff command inside a submodule, immediately
> exit the routine rather than trying to finish the command and
> printing
> a second message.
> 
> Signed-off-by: David Turner <dturner@twosigma.com>
> ---
>  submodule.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/submodule.c b/submodule.c
> index d13d103975..2e98e840af 100644
> --- a/submodule.c
> +++ b/submodule.c
> @@ -720,8 +720,10 @@ void show_submodule_inline_diff(struct
> diff_options *o, const char *path,
>                 strvec_push(&cp.env_array, GIT_WORK_TREE_ENVIRONMENT
> "=.");
>         }
>  
> -       if (start_command(&cp))
> +       if (start_command(&cp)) {
>                 diff_emit_submodule_error(o, "(diff failed)\n");
> +               goto done;
> +       }
>  
>         while (strbuf_getwholeline_fd(&sb, cp.out, '\n') != EOF)
>                 diff_emit_submodule_pipethrough(o, sb.buf, sb.len);



      reply	other threads:[~2021-08-30 13:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-12  0:13 [PATCH v3 1/3] Remove unused var David Turner
2021-08-12  0:13 ` [PATCH v3 2/3] diff --submodule=diff: do not fail on ever-initialied deleted submodules David Turner
2021-08-12  0:13 ` [PATCH v3 3/3] diff --submodule=diff: Don't print failure message twice David Turner
2021-08-30 13:45   ` David Turner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d14d2c180f59b9115754318e4d3567a404769d06.camel@novalis.org \
    --to=novalis@novalis.org \
    --cc=dturner@twosigma.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).