Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhillip Wood <phillip.wood@dunelm.org.uk>2018-10-31 13:15:55 +0300
committerJunio C Hamano <gitster@pobox.com>2018-11-01 06:08:06 +0300
commitbcd33ec25f28514776f3b17af6a5a80b1f329f81 (patch)
tree7b22600959b92dc882a15e80b7bcf53912cadcc0 /sequencer.h
parenta75d35138850e3a171243c5fafce4efe75827e06 (diff)
add read_author_script() to libgit
Add read_author_script() to sequencer.c based on the implementation in builtin/am.c and update read_am_author_script() to use read_author_script(). The sequencer code that reads the author script will be updated in the next commit. Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sequencer.h')
-rw-r--r--sequencer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sequencer.h b/sequencer.h
index c986bc8251..60f15a4d9c 100644
--- a/sequencer.h
+++ b/sequencer.h
@@ -114,4 +114,7 @@ void commit_post_rewrite(const struct commit *current_head,
#define SUMMARY_SHOW_AUTHOR_DATE (1 << 1)
void print_commit_summary(const char *prefix, const struct object_id *oid,
unsigned int flags);
+
+int read_author_script(const char *path, char **name, char **email, char **date,
+ int allow_missing);
#endif