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 <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Phillip Wood committed
Oct 31, 2018 at 10:15 UTC
a75d35138850e3a171243c5fafce4efe75827e06
1 file changed
+2
-2
builtin/am.c
+2
-2
@@ -306,7 +306,7 @@ static int parse_key_value_squoted(char *buf, struct string_list *list)
306
* script, and thus if the file differs from what this function expects, it is
307
* better to bail out than to do something that the user does not expect.
308
*/
309
-static int read_author_script(struct am_state *state)
309
+static int read_am_author_script(struct am_state *state)
310
{
311
const char *filename = am_path(state, "author-script");
312
struct strbuf buf = STRBUF_INIT;
@@ -441,7 +441,7 @@ static void am_load(struct am_state *state)
441
BUG("state file 'last' does not exist");
442
state->last = strtol(sb.buf, NULL, 10);
443
444
- if (read_author_script(state) < 0)
444
+ if (read_am_author_script(state) < 0)
445
die(_("could not parse author script"));
446
447
read_commit_msg(state);