Re: [PATCH v2 2/4] commit-queue: LIFO or priority queue of commits
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 10, 2013, 23:23 UTC
- Message-ID
- <7vd2rteej0.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20130610185907.GD2084@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 14 quoted lines
> On Mon, Jun 10, 2013 at 11:56:33AM -0700, Junio C Hamano wrote: > >> > or similar. I didn't change the name, either. It may be silly to call it >> > "commit_queue" still since it is now more general. I simply called mine >> > "queue" (I wanted "pqueue", but that conflicted with globals defined by >> > OpenSSL; yours is a more general queue anyway, so maybe that is a good >> > name). >> >> I agree that it makes sense not to call it either commit-queue or >> pqueue. While at it, the filenames should probably be moved as >> well, no? > > Yeah, definitely. I left all of that as an exercise for you, since the > name change will involve a lot of fallout in the other patches.
OK, I pushed out a result of some renaming and rebasing. Notable changes are:
- The data and API is called prio-queue and they live in prio-queue.[ch];
- The test script is also named test-prio-queue.c, to leave the door open for other kinds of queue;
- For now, record_author_date() does the obvious read-sha1-file and free; and
- The comparison callback's function signature had three "void *", so they are named in the header file now. Also two "thing" pointers are marked as "const void *".
I may have flipped the comparison < vs <= as well.
Thanks.