]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'pw/am-rebase-read-author-script'
authorJunio C Hamano <gitster@pobox.com>
Tue, 13 Nov 2018 13:37:23 +0000 (22:37 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Nov 2018 13:37:23 +0000 (22:37 +0900)
Unify code to read the author-script used in "git am" and the
commands that use the sequencer machinery, e.g. "git rebase -i".

* pw/am-rebase-read-author-script:
  sequencer: use read_author_script()
  add read_author_script() to libgit
  am: rename read_author_script()
  am: improve author-script error reporting
  am: don't die in read_author_script()

1  2 
builtin/am.c
sequencer.c
sequencer.h

diff --cc builtin/am.c
Simple merge
diff --cc sequencer.c
Simple merge
diff --cc sequencer.h
index 660cff5050b39e38e721182861ada83e95e8378b,60f15a4d9c0e5db0f2c640da4f2e29fb9f4ca396..5071a73563f1cdfc35060603d1fef4e085497798
@@@ -130,8 -114,7 +130,11 @@@ int prepare_branch_to_be_rebased(struc
  #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
 +
 +void parse_strategy_opts(struct replay_opts *opts, char *raw_opts);
 +int write_basic_state(struct replay_opts *opts, const char *head_name,
 +                    const char *onto, const char *orig_head);