Re: [PATCH v2 04/14] describe: use commit-slab for commit names instead of commit->util
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 13, 2018, 23:45 UTC
- Message-ID
- <xmqq1sefdssa.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20180513055208.17952-5-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
> + slot = commit_names_peek(&commit_names, c); > + n = slot ? *slot : NULL;
Seeing this and the helper in the previous step makes me wonder if we also want a "peek-and-then-peel" variant that encapsulates this pattern. We'll know when we read the series through.
So far looking good. Thanks.
> if (n) {
> if (!tags && !all && n->prio < 2) {
> unannotated_cnt++;