Skip to content

C99: declare bool experiment a success

Phillip Wood git 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 5 repliesIn review
  2. v23 patches 11 repliesSuperseded
  3. v13 patches 5 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3CodingGuidelines: allow the use of boolDocumentation/CodingGuidelines+3 -00 replies
2/3git-compat-util: convert string predicates to return boolgit-compat-util.h+6 -61 reply
3/3strbuf: convert predicates to return boolstrbuf.c strbuf.h+20 -201 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] C99: declare bool experiment a success

From: Phillip Wood <[email protected]>

We've had a test balloon for C99's bool type since 8277dbe987 (git-compat-util: convert skip_{prefix,suffix}{,_mem} to bool, 2023-12-16). As it has been over 18 months since this was added and there have been no complaints let's declare it a success and convert the return type our other string predicates to match.

Thanks to peff for spotting yet another typo - I've updated the commit message for patch 1 accordingly.

Base-Commit: a30f80fde927d70950b3b4d1820813480968fb0d
Published-As: https://github.com/phillipwood/git/releases/tag/pw%2Fuse-c99-bool%2Fv3
View-Changes-At: https://github.com/phillipwood/git/compare/a30f80fde...80e5cd3b9
Fetch-It-Via: git fetch https://github.com/phillipwood/git pw/use-c99-bool/v3

Phillip Wood (3):
CodingGuidelines: allow the use of bool
git-compat-util: convert string predicates to return bool
strbuf: convert predicates to return bool

 Documentation/CodingGuidelines |  3 +++
 git-compat-util.h              | 12 ++++++------
 strbuf.c                       | 28 ++++++++++++++--------------
 strbuf.h                       | 12 ++++++------
 4 files changed, 29 insertions(+), 26 deletions(-)

Range-diff against v2:
1: 352f80c49b7 ! 1: 3ff7ae61f45 CodingGuildlines: allow the use of bool
@@ Metadata
Author: Phillip Wood <[email protected]>

## Commit message ##
- CodingGuildlines: allow the use of bool
+ CodingGuidelines: allow the use of bool

We have had a test balloon for C99's bool type since 8277dbe987 (git-compat-util: convert skip_{prefix,suffix}{,_mem} to bool,

2:  0b2402e11cc = 2:  26c3f48ac6c git-compat-util: convert string predicates to return bool
3:  66968714739 = 3:  80e5cd3b9df strbuf: convert predicates to return bool
Signature · 1 line
2.49.0.897.gfad3eb7d210