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

[PATCH 00/23] add a new coccinelle semantic patch to enforce a

From
Elia Pinto <gitter.spiros@gmail.com>
Date
Apr 30, 2022, 04:13 UTC
Message-ID
<20220430041406.164719-1-gitter.spiros@gmail.com>

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
Next: Elia Pinto
Message 1 of 38 in “add a new coccinelle semantic patch to enforce a”
  1. 00/23 add a new coccinelle semantic patch to enforce aElia Pinto, Apr 30, 2022
  2. 01/23 contrib/coccinnelle: add equals-null.cocciElia Pinto, Apr 30, 2022
  3. Philip OakleyApr 30, 2022
  4. Junio C HamanoApr 30, 2022
  5. Philip OakleyApr 30, 2022
  6. Junio C HamanoApr 30, 2022
  7. Junio C HamanoMay 1, 2022
  8. Elia PintoMay 1, 2022
  9. Philip OakleyMay 1, 2022
  10. Junio C HamanoMay 1, 2022
  11. Elia PintoMay 1, 2022
  12. Junio C HamanoMay 2, 2022
  13. Philip OakleyMay 2, 2022
  14. Junio C HamanoMay 2, 2022
  15. Carlo Marcelo Arenas BelónMay 2, 2022
  16. 02/23 apply.c: Fix coding styleElia Pinto, Apr 30, 2022
  17. 03/23 archive.c: Fix coding styleElia Pinto, Apr 30, 2022
  18. 04/23 blame.c: Fix coding styleElia Pinto, Apr 30, 2022
  19. 05/23 branch.c: Fix coding styleElia Pinto, Apr 30, 2022
  20. 08/23 builtin/clone.c: Fix coding styleElia Pinto, Apr 30, 2022
  21. 07/23 builtin/checkout.c: Fix coding styleElia Pinto, Apr 30, 2022
  22. 06/23 builtin/bisect--helper.c: Fix coding styleElia Pinto, Apr 30, 2022
  23. Christian CouderMay 3, 2022
  24. 09/23 builtin/commit.c: Fix coding styleElia Pinto, Apr 30, 2022
  25. 11/23 builtin/gc.c: Fix coding styleElia Pinto, Apr 30, 2022
  26. 10/23 builtin/diff.c: Fix coding styleElia Pinto, Apr 30, 2022
  27. 12/23 builtin/index-pack.c: Fix coding styleElia Pinto, Apr 30, 2022
  28. 13/23 builtin/log.c: Fix coding styleElia Pinto, Apr 30, 2022
  29. 14/23 builtin/ls-remote.c: Fix coding styleElia Pinto, Apr 30, 2022
  30. 16/23 builtin/pack-redundant.c: Fix coding styleElia Pinto, Apr 30, 2022
  31. 15/23 builtin/mailsplit.c: Fix coding styleElia Pinto, Apr 30, 2022
  32. 18/23 builtin/replace.c: Fix coding styleElia Pinto, Apr 30, 2022
  33. 20/23 builtin/shortlog.c: Fix coding styleElia Pinto, Apr 30, 2022
  34. 19/23 builtin/rev-parse.c: Fix coding styleElia Pinto, Apr 30, 2022
  35. 17/23 builtin/receive-pack.c: Fix coding styleElia Pinto, Apr 30, 2022
  36. 21/23 builtin/tag.c: Fix coding styleElia Pinto, Apr 30, 2022
  37. 23/23 commit-graph.c: Fix coding styleElia Pinto, Apr 30, 2022
  38. 22/23 combine-diff.c: Fix coding styleElia Pinto, Apr 30, 2022

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.