summaryrefslogtreecommitdiff
path: root/contrib/coccinelle
AgeCommit message (Expand)AuthorFilesLines
2021-09-10index-pack: use xopen in init_threadLibravatar René Scharfe1-5/+8
2021-08-25use xopen() to handle fatal open(2) failuresLibravatar René Scharfe1-0/+16
2021-03-19Merge branch 'rs/xcalloc-takes-nelem-first'Libravatar Junio C Hamano1-0/+10
2021-03-15cocci: allow xcalloc(1, size)Libravatar Junio C Hamano1-1/+1
2021-03-13use CALLOC_ARRAYLibravatar René Scharfe1-0/+8
2021-03-08fix xcalloc() argument orderLibravatar René Scharfe1-0/+10
2020-06-17commit: move members graph_pos, generation to a slabLibravatar Abhishek Kumar1-0/+18
2019-12-01Merge branch 'jk/remove-sha1-to-hex'Libravatar Junio C Hamano1-32/+0
2019-11-13hex: drop sha1_to_hex()Libravatar Jeff King1-15/+0
2019-11-11hex: drop sha1_to_hex_r()Libravatar Jeff King1-17/+0
2019-11-10Fix spelling errors in code commentsLibravatar Elijah Newren1-1/+1
2019-10-07coccicheck: detect hashmap_entry.hash assignmentLibravatar Eric Wong1-0/+16
2019-06-17coccinelle: use COPY_ARRAY for copying arraysLibravatar René Scharfe1-15/+46
2019-05-09Merge branch 'nd/sha1-name-c-wo-the-repository'Libravatar Junio C Hamano1-7/+13
2019-04-16commit.c: add repo_get_commit_tree()Libravatar Nguyễn Thái Ngọc Duy1-3/+3
2019-04-16commit.cocci: refactor code, avoid double rewriteLibravatar Nguyễn Thái Ngọc Duy1-7/+13
2019-04-04cocci: FLEX_ALLOC_MEM to FLEX_ALLOC_STRLibravatar Denton Liu1-0/+13
2019-02-05Merge branch 'sg/strbuf-addbuf-cocci'Libravatar Junio C Hamano1-0/+30
2019-02-05Merge branch 'sb/more-repo-in-api'Libravatar Junio C Hamano1-0/+144
2019-01-27strbuf.cocci: suggest strbuf_addbuf() to add one strbuf to an otherLibravatar SZEDER Gábor1-0/+30
2019-01-15cache: make oidcpy always copy GIT_MAX_RAWSZ bytesLibravatar brian m. carlson1-30/+0
2018-11-14pretty: prepare format_commit_message to handle arbitrary repositoriesLibravatar Stefan Beller1-0/+10
2018-11-14commit: prepare logmsg_reencode to handle arbitrary repositoriesLibravatar Stefan Beller1-0/+9
2018-11-14commit: prepare repo_unuse_commit_buffer to handle any repoLibravatar Stefan Beller1-0/+8
2018-11-14commit: prepare get_commit_buffer to handle any repoLibravatar Stefan Beller1-0/+8
2018-11-14commit-reach: prepare in_merge_bases[_many] to handle any repoLibravatar Stefan Beller1-0/+17
2018-11-14commit-reach: prepare get_merge_bases to handle any repoLibravatar Stefan Beller1-0/+26
2018-11-14commit: allow parse_commit* to handle any repoLibravatar Stefan Beller1-0/+24
2018-11-14object-store: prepare has_{sha1, object}_file to handle any repoLibravatar Stefan Beller1-0/+30
2018-11-14object-store: prepare read_object_file to deal with any repoLibravatar Stefan Beller1-0/+12
2018-11-14coccicheck: introduce 'pending' semantic patchesLibravatar SZEDER Gábor1-0/+41
2018-10-30Merge branch 'jc/cocci-preincr'Libravatar Junio C Hamano1-0/+5
2018-10-24cocci: simplify "if (++u > 1)" to "if (u++)"Libravatar Junio C Hamano1-0/+5
2018-10-15object_id.cocci: match only expressions of type 'struct object_id'Libravatar SZEDER Gábor1-54/+63
2018-08-29convert "hashcmp() != 0" to "!hasheq()"Libravatar Jeff King1-0/+9
2018-08-29convert "oidcmp() != 0" to "!oideq()"Libravatar Jeff King1-0/+6
2018-08-29convert "hashcmp() == 0" to hasheq()Libravatar Jeff King1-0/+9
2018-08-29convert "oidcmp() == 0" to oideq()Libravatar Jeff King1-0/+6
2018-08-29coccinelle: use <...> for function exclusionLibravatar Jeff King2-12/+12
2018-07-16coccinelle: update commit.cocciLibravatar Derrick Stolee1-1/+1
2018-05-02coccinelle: avoid wrong transformation suggestions from commit.cocciLibravatar SZEDER Gábor1-6/+4
2018-04-11treewide: replace maybe_tree with accessor methodsLibravatar Derrick Stolee1-0/+30
2018-02-15Merge branch 'rs/cocci-strbuf-addf-to-addstr'Libravatar Junio C Hamano1-16/+1
2018-02-02cocci: simplify check for trivial format stringsLibravatar René Scharfe1-16/+1
2018-01-19cocci: use format keyword instead of a literal stringLibravatar René Scharfe1-1/+2
2017-10-02coccinelle: remove parentheses that become unnecessaryLibravatar René Scharfe1-5/+5
2017-07-17add MOVE_ARRAYLibravatar René Scharfe1-0/+17
2017-06-29coccinelle: polish FREE_AND_NULL rulesLibravatar René Scharfe1-9/+1
2017-06-16coccinelle: add a rule to make "expression" code use FREE_AND_NULL()Libravatar Ævar Arnfjörð Bjarmason1-0/+7
2017-06-16coccinelle: add a rule to make "type" code use FREE_AND_NULL()Libravatar Ævar Arnfjörð Bjarmason1-0/+8