From: Phillip Wood Date: Thu, 09 Aug 2018 10:06:15 GMT Subject: Re: [PATCH v4 2/2] sequencer: fix quoting in write_author_script Message-ID: <8d2da302-cf48-cc03-6300-a80bd3d67bab@talktalk.net> In-Reply-To: Hi Junio On 08/08/18 17:01, Junio C Hamano wrote: > Eric Sunshine writes: > >> What does concern me is that read_env_script() doesn't seem to care >> about such a malformed file; it doesn't do any validation at all. >> Contrast that with read_author_ident() which is pretty strict about >> the content it expects to find in the file. So, it might make sense to >> upgrade read_env_script() to do some sort of validation on each line >> (though that shouldn't be in this patch, and doesn't even need to be >> in this series). > > I do not think it is within the scope of these bugfix patches, but I > tend to agree that in the longer term it would be a good idea to > unify these two helpers that read exactly the same file stored at > rebase_path_author_script(), and make the result stricter, rather > than tightening two helpers independently. That's my longer term goal, ideally sharing code with am. Best Wishes Phillip