Skip to content

Commit a75d351

Browse files
phillipwoodgitster
authored andcommitted
am: rename read_author_script()
Rename read_author_script() in preparation for adding a shared read_author_script() function to libgit. Signed-off-by: Phillip Wood <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 442c36b commit a75d351

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/am.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ static int parse_key_value_squoted(char *buf, struct string_list *list)
306306
* script, and thus if the file differs from what this function expects, it is
307307
* better to bail out than to do something that the user does not expect.
308308
*/
309-
static int read_author_script(struct am_state *state)
309+
static int read_am_author_script(struct am_state *state)
310310
{
311311
const char *filename = am_path(state, "author-script");
312312
struct strbuf buf = STRBUF_INIT;
@@ -441,7 +441,7 @@ static void am_load(struct am_state *state)
441441
BUG("state file 'last' does not exist");
442442
state->last = strtol(sb.buf, NULL, 10);
443443

444-
if (read_author_script(state) < 0)
444+
if (read_am_author_script(state) < 0)
445445
die(_("could not parse author script"));
446446

447447
read_commit_msg(state);

0 commit comments

Comments
 (0)