git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Elia Pinto <gitter.spiros@gmail.com>
To: git@vger.kernel.org
Cc: Elia Pinto <gitter.spiros@gmail.com>
Subject: [PATCH 00/23] add a new coccinelle semantic patch to enforce a
Date: Sat, 30 Apr 2022 04:13:43 +0000	[thread overview]
Message-ID: <20220430041406.164719-1-gitter.spiros@gmail.com> (raw)

This patch series adds a new coccinelle semantic patch to enforce the git coding
style that requires "Do not explicitly compute an integral value with constant 0
or '\ 0', or a pointer value with constant NULL."

It also fixes a set of sources using the new semantic patch.

Elia Pinto (23):
  contrib/coccinnelle: add equals-null.cocci
  apply.c: Fix coding style
  archive.c: Fix coding style
  blame.c: Fix coding style
  branch.c: Fix coding style
  builtin/bisect--helper.c: Fix coding style
  builtin/checkout.c: Fix coding style
  builtin/clone.c: Fix coding style
  builtin/commit.c: Fix coding style
  builtin/diff.c: Fix coding style
  builtin/gc.c: Fix coding style
  builtin/index-pack.c: Fix coding style
  builtin/log.c: Fix coding style
  builtin/ls-remote.c: Fix coding style
  builtin/mailsplit.c: Fix coding style
  builtin/pack-redundant.c: Fix coding style
  builtin/receive-pack.c: Fix coding style
  builtin/replace.c: Fix coding style
  builtin/rev-parse.c: Fix coding style
  builtin/shortlog.c: Fix coding style
  builtin/tag.c: Fix coding style
  combine-diff.c: Fix coding style
  commit-graph.c: Fix coding style

 apply.c                              |  6 +++---
 archive.c                            |  2 +-
 blame.c                              |  6 +++---
 branch.c                             |  4 ++--
 builtin/bisect--helper.c             |  2 +-
 builtin/checkout.c                   |  2 +-
 builtin/clone.c                      |  4 ++--
 builtin/commit.c                     |  2 +-
 builtin/diff.c                       |  2 +-
 builtin/gc.c                         |  6 +++---
 builtin/index-pack.c                 |  6 +++---
 builtin/log.c                        |  2 +-
 builtin/ls-remote.c                  |  2 +-
 builtin/mailsplit.c                  |  2 +-
 builtin/pack-redundant.c             | 10 +++++-----
 builtin/receive-pack.c               |  4 ++--
 builtin/replace.c                    |  2 +-
 builtin/rev-parse.c                  |  2 +-
 builtin/shortlog.c                   |  2 +-
 builtin/tag.c                        |  4 ++--
 combine-diff.c                       |  4 ++--
 commit-graph.c                       |  4 ++--
 contrib/coccinelle/equals-null.cocci | 30 ++++++++++++++++++++++++++++
 23 files changed, 70 insertions(+), 40 deletions(-)
 create mode 100644 contrib/coccinelle/equals-null.cocci

-- 
2.35.1


             reply	other threads:[~2022-04-30  4:14 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-30  4:13 Elia Pinto [this message]
2022-04-30  4:13 ` [PATCH 01/23] contrib/coccinnelle: add equals-null.cocci Elia Pinto
2022-04-30 19:34   ` Philip Oakley
2022-04-30 20:56     ` Junio C Hamano
2022-04-30 21:38       ` Philip Oakley
2022-04-30 23:13         ` Junio C Hamano
2022-05-01  0:20           ` Junio C Hamano
2022-05-01 17:04             ` Elia Pinto
2022-05-01 17:22               ` Philip Oakley
2022-05-01 23:14               ` Junio C Hamano
2022-05-01 23:37                 ` Elia Pinto
2022-05-02  6:22                 ` Junio C Hamano
2022-05-02 10:00                   ` Philip Oakley
2022-05-02 16:32                     ` Junio C Hamano
2022-05-02 11:07             ` Carlo Marcelo Arenas Belón
2022-04-30  4:13 ` [PATCH 02/23] apply.c: Fix coding style Elia Pinto
2022-04-30  4:13 ` [PATCH 03/23] archive.c: " Elia Pinto
2022-04-30  4:13 ` [PATCH 04/23] blame.c: " Elia Pinto
2022-04-30  4:13 ` [PATCH 05/23] branch.c: " Elia Pinto
2022-04-30  4:13 ` [PATCH 06/23] builtin/bisect--helper.c: " Elia Pinto
2022-05-03  9:54   ` Christian Couder
2022-04-30  4:13 ` [PATCH 07/23] builtin/checkout.c: " Elia Pinto
2022-04-30  4:13 ` [PATCH 08/23] builtin/clone.c: " Elia Pinto
2022-04-30  4:13 ` [PATCH 09/23] builtin/commit.c: " Elia Pinto
2022-04-30  4:13 ` [PATCH 10/23] builtin/diff.c: " Elia Pinto
2022-04-30  4:13 ` [PATCH 11/23] builtin/gc.c: " Elia Pinto
2022-04-30  4:13 ` [PATCH 12/23] builtin/index-pack.c: " Elia Pinto
2022-04-30  4:13 ` [PATCH 13/23] builtin/log.c: " Elia Pinto
2022-04-30  4:13 ` [PATCH 14/23] builtin/ls-remote.c: " Elia Pinto
2022-04-30  4:13 ` [PATCH 15/23] builtin/mailsplit.c: " Elia Pinto
2022-04-30  4:13 ` [PATCH 16/23] builtin/pack-redundant.c: " Elia Pinto
2022-04-30  4:14 ` [PATCH 17/23] builtin/receive-pack.c: " Elia Pinto
2022-04-30  4:14 ` [PATCH 18/23] builtin/replace.c: " Elia Pinto
2022-04-30  4:14 ` [PATCH 19/23] builtin/rev-parse.c: " Elia Pinto
2022-04-30  4:14 ` [PATCH 20/23] builtin/shortlog.c: " Elia Pinto
2022-04-30  4:14 ` [PATCH 21/23] builtin/tag.c: " Elia Pinto
2022-04-30  4:14 ` [PATCH 22/23] combine-diff.c: " Elia Pinto
2022-04-30  4:14 ` [PATCH 23/23] commit-graph.c: " Elia Pinto

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=20220430041406.164719-1-gitter.spiros@gmail.com \
    --to=gitter.spiros@gmail.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).