Re: [PATCH v2 11/13] name-rev: drop name_rev()'s 'generation' and 'distance' parameters
- From
- Jonathan Tan <jonathantanmy@google.com>
- Date
- Nov 27, 2019, 18:13 UTC
- Message-ID
- <20191127181322.171734-1-jonathantanmy@google.com>
- In-Reply-To
- <20191112103821.30265-12-szeder.dev@gmail.com>
Show 9 quoted lines
> if (create_or_update_name(parent, new_name, taggerdate, > - new_generation, new_distance, > + generation, distance, > from_tag)) > - name_rev(parent, new_name, taggerdate, > - new_generation, new_distance, from_tag); > + name_rev(parent, new_name, taggerdate, from_tag); > } > }
[snip]
Show 7 quoted lines
> if (create_or_update_name(commit, tip_name, taggerdate, > 0, 0, from_tag)) > - name_rev(commit, tip_name, taggerdate, 0, 0, > + name_rev(commit, tip_name, taggerdate, > from_tag); > else > free(to_free);
All invocations of name_rev() are first preceded by create_or_update_name(), which sets the "generation" and "distance" fields in the name accordingly, so this looks good. All preceding patches look good too. I have already sent emails for patch 12 and 13, so this concludes my review.