cocci.inria.fr archive mirror
 help / color / mirror / Atom feed
From: Jan Tojnar <jtojnar@gmail.com>
To: Julia Lawall <julia.lawall@inria.fr>
Cc: cocci@inria.fr
Subject: Re: [cocci] [PATCH v2] Exit with non-zero status when spatch on a directory fails
Date: Mon, 5 Sep 2022 22:21:48 +0200	[thread overview]
Message-ID: <CAFGSp1vDA7DBgmtQeYu255M_e9zQYCPVAryL15OikEz+Rf1qyQ@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2209052150160.3611@hadrien>

On Mon, 5 Sept 2022 at 21:51, Julia Lawall <julia.lawall@inria.fr> wrote:
>
> The patch has been applied, followed by another one that dropped th e
> --keep-trying option and that addresses the parmap issue.

Thanks, that will work for us, except that you probably accidentally
made it so that patching only happens when a failure occurs – there
should be `not` before `patching_failed` on this line:
https://github.com/coccinelle/coccinelle/blob/5448bb2bd03491ffec356bf7bd6ddcdbf4d36bc9/enter.ml#L1419

Additionally, it looks like you keep introducing more tab characters
into the indentation, resulting in mixed tabs and spaces. This makes
diffs more noisy than necessary and the code can end up displayed
misaligned in some text editors.

May I suggest adding the following .editorconfig file to the root of
the repository? Hopefully, your editor has support for that standard
and will use consistent formatting:
https://editorconfig.org/#pre-installed

root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{ml,mli}]
indent_style = space
indent_size = 2
tab_width = 8

  reply	other threads:[~2022-09-05 20:22 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-04 22:50 [cocci] [PATCH] Exit with non-zero status when spatch on a directory fails Jan Tojnar
2022-09-05  7:57 ` Julia Lawall
2022-09-05  9:09   ` [cocci] [PATCH v2] " Jan Tojnar
2022-09-05 10:48     ` Julia Lawall
2022-09-05 12:04       ` Jan Tojnar
2022-09-05 12:29         ` Julia Lawall
     [not found]           ` <CAFGSp1umoczUe4npSesAUOLgSq=9VkvLUOV3x1hSvSajqQkGfw@mail.gmail.com>
2022-09-05 12:51             ` Julia Lawall
2022-09-05 14:18               ` Jan Tojnar
2022-09-05 16:03                 ` Julia Lawall
2022-09-05 19:51                 ` Julia Lawall
2022-09-05 20:21                   ` Jan Tojnar [this message]
2022-09-05 20:35                     ` Julia Lawall
2022-10-22 12:09                       ` Jan Tojnar
2022-10-22 12:26                         ` Julia Lawall
2022-09-05 21:28                     ` Julia Lawall

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

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

  git send-email \
    --in-reply-to=CAFGSp1vDA7DBgmtQeYu255M_e9zQYCPVAryL15OikEz+Rf1qyQ@mail.gmail.com \
    --to=jtojnar@gmail.com \
    --cc=cocci@inria.fr \
    --cc=julia.lawall@inria.fr \
    /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.
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 NNTP newsgroup(s).