Skip to content

Commit b26a71b

Browse files
avargitster
authored andcommitted
cocci: apply the "rerere.h" part of "the_repository.pending"
Apply the part of "the_repository.pending.cocci" pertaining to "rerere.h". Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 12cb1c1 commit b26a71b

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

builtin/stash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ static int do_apply_stash(const char *prefix, struct stash_info *info,
601601
ret = error(_("could not write index"));
602602

603603
if (ret) {
604-
rerere(0);
604+
repo_rerere(the_repository, 0);
605605

606606
if (index)
607607
fprintf_ln(stderr, _("Index was not unstashed."));

contrib/coccinelle/the_repository.cocci

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@
109109
|
110110
- dwim_ref
111111
+ repo_dwim_ref
112+
// rerere.h
113+
|
114+
- rerere
115+
+ repo_rerere
112116
)
113117
(
114118
+ the_repository,

contrib/coccinelle/the_repository.pending.cocci

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55
@@
66
@@
77
(
8-
// rerere.h
9-
- rerere
10-
+ repo_rerere
118
// revision.h
12-
|
139
- init_revisions
1410
+ repo_init_revisions
1511
)

rerere.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ struct rerere_id {
2424
};
2525

2626
int setup_rerere(struct repository *,struct string_list *, int);
27-
#ifndef NO_THE_REPOSITORY_COMPATIBILITY_MACROS
28-
#define rerere(flags) repo_rerere(the_repository, flags)
29-
#endif
3027
int repo_rerere(struct repository *, int);
3128
/*
3229
* Given the conflict ID and the name of a "file" used for replaying

0 commit comments

Comments
 (0)