Re: [PATCH 03/11] push: reorganize setup_push_simple()
From: Felipe Contreras <hidden>
Date: 2021-05-28 21:27:44
Elijah Newren wrote:
On Fri, May 28, 2021 at 1:10 PM Felipe Contreras [off-list ref] wrote:quoted
Simply move the code around.Not quite, you also deleted dead code. Made the patch a bit harder to read because I was trying to verify you did what the commit message said and it took me longer than it should have to realize that you were also deleting dead code. Might be worth including that fact in this sentence here.
OK. I thought that was obvious. Shall I update the commit message to include that fact, or shall I add a separate patch to remove the dead code? Either are fine by me.
quoted
- if (triangular) - die(_("You are pushing to remote '%s', which is not the upstream of\n" - "your current branch '%s', without telling me what to push\n" - "to update which remote branch."), - remote->name, branch->name);This if-block is safe to delete because we're already in the !triangular case.quoted
- - if (1) {
Techically this is removing dead code too. -- Felipe Contreras