Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 1/4] Add history graph API

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:27

Adam Simpkins [off-list ref] writes:
On Sun, Apr 06, 2008 at 10:06:24PM +0100, Johannes Schindelin wrote:
quoted
On Sun, 6 Apr 2008, Adam Simpkins wrote:
quoted
+/* Defined in commit.h */
+struct commit;
+/* Defined in strbuf.h */
+struct strbuf;
You do not need those.
I added them so that graph.h can be included without including any
other header files first.  They can be taken out if we assume that all
users of graph.h will include commit.h and strbuf.h first.
The current practice is we expect .c files to include necessary .h files
themselves and avoid including .h files from others (I do not personally
necessarily agree with this practice, by the way, but that is the way it
is).  So please drop them.
Sorry, force of habit.  I tried to remember to use postfix in most
places, but I guess I forgot in that place.
We seem to consistently use postfix when increment is done only for its
side effect.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help