From: Eric Sunshine Date: Tue, 30 Dec 2014 09:10:08 GMT Subject: Re: [PATCHv8 4/9] receive-pack.c: simplify execute_commands Message-ID: In-Reply-To: On Tue, Dec 30, 2014 at 3:42 AM, Stefan Beller wrote: > On Mon, Dec 29, 2014 at 11:46 PM, Eric Sunshine wrote: >> On Mon, Dec 29, 2014 at 9:36 PM, Stefan Beller wrote: >>> No functional changes intended. >>> +static void check_shallow_bugs(struct command *commands, >>> + struct shallow_info *si) >>> +{ >>> + struct command *cmd; >>> + int checked_connectivity = 1; >>> + for (cmd = commands; cmd; cmd = cmd->next) { >>> + if (!should_process_cmd(cmd)) >>> + continue; >>> + >>> + if (shallow_update && si->shallow_ref[cmd->index]) { >> >> Another issue: In the original code, 'si->shallow_ref[cmd->index]' is >> only checked if cmd->error_string is NULL, but here you check it >> unconditionally, despite the commit message claiming no functional >> changes. Did you verify that such a behavioral change is benign? (This >> is a genuine question.) > > The error != NULL check is done in if (!should_process_cmd(cmd)) Right. Thanks for setting me straight on that.