]> git.ipfire.org Git - thirdparty/git.git/commit
sequencer: allow callers of read_author_script() to ignore fields
authorRohit Ashiwal <rohit.ashiwal265@gmail.com>
Fri, 1 Nov 2019 13:59:59 +0000 (19:29 +0530)
committerJunio C Hamano <gitster@pobox.com>
Sat, 2 Nov 2019 06:34:50 +0000 (15:34 +0900)
commitc068bcc59b4f16322a77b6a47b53d44b05c51fec
tree355ded6c6469782797f9c658dd447c9b1952832e
parentba51d2fb24b1a41b8cc15270a06f24c35c0fcf19
sequencer: allow callers of read_author_script() to ignore fields

The current callers of the read_author_script() function read name,
email and date from the author script.  Allow callers to signal that
they are not interested in some among these three fields by passing
NULL.

Note that fields that are ignored still must exist and be formatted
correctly in the author script.

Signed-off-by: Rohit Ashiwal <rohit.ashiwal265@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c