Skip to content

Commit 5978de2

Browse files
avargitster
authored andcommitted
cocci: sort "the_repository" rules by header
Sort the "the_repository.pending.cocci" file by which header the macros are in, and add a comment to that effect in front of the rules. This will make subsequent commits easier to follow, as we'll be applying these rules on a header-by-header basis. Once we've fully applied "the_repository.pending.cocci" we'll keep this rules around for a while in "the_repository.cocci", to help any outstanding topics and out-of-tree code to resolve textual or semantic conflicts with these changes, but eventually we'll remove the "the_repository.cocci" as a follow-up. So even if some of these functions are subsequently moved and/or split into other or new headers there's no risk of this becoming stale, if and when that happens the we should be removing these rules anyway. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6f1436b commit 5978de2

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

contrib/coccinelle/the_repository.pending.cocci

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,7 @@
55
@@
66
@@
77
(
8-
- read_object_file
9-
+ repo_read_object_file
10-
|
11-
- has_object_file
12-
+ repo_has_object_file
13-
|
14-
- has_object_file_with_flags
15-
+ repo_has_object_file_with_flags
16-
|
17-
- parse_commit_internal
18-
+ repo_parse_commit_internal
19-
|
20-
- parse_commit
21-
+ repo_parse_commit
22-
|
8+
// commit-reach.h
239
- get_merge_bases
2410
+ repo_get_merge_bases
2511
|
@@ -34,6 +20,13 @@
3420
|
3521
- in_merge_bases_many
3622
+ repo_in_merge_bases_many
23+
// commit.h
24+
|
25+
- parse_commit_internal
26+
+ repo_parse_commit_internal
27+
|
28+
- parse_commit
29+
+ repo_parse_commit
3730
|
3831
- get_commit_buffer
3932
+ repo_get_commit_buffer
@@ -43,6 +36,17 @@
4336
|
4437
- logmsg_reencode
4538
+ repo_logmsg_reencode
39+
// object-store.h
40+
|
41+
- read_object_file
42+
+ repo_read_object_file
43+
|
44+
- has_object_file
45+
+ repo_has_object_file
46+
|
47+
- has_object_file_with_flags
48+
+ repo_has_object_file_with_flags
49+
// pretty.h
4650
|
4751
- format_commit_message
4852
+ repo_format_commit_message

0 commit comments

Comments
 (0)