Re: [PATCH 3/4] builtin/am: read mailinfo from file
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Apr 7, 2016, 17:36 UTC
- Message-ID
- <vpqinzttj7c.fsf@anie.imag.fr>
- In-Reply-To
- <1460042563-32741-4-git-send-email-mst@redhat.com>
"Michael S. Tsirkin" <mst@redhat.com> writes:
Show 5 quoted lines
> - strbuf_addbuf(&msg, &mi.log_message);
> +
> + if (strbuf_read_file(&log_msg, am_path(state, "msg"), 0) < 0) {
> + die_errno(_("could not read '%s'"), am_path(state, "msg"));
> + }Style: we omit the braces where not needed.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/