Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [PATCH 06/16] shortlog: add missing declaration

From: Felipe Contreras <hidden>
Date: 2016-06-15 22:59:09

On Thu, Oct 31, 2013 at 1:05 PM, Junio C Hamano [off-list ref] wrote:
Felipe Contreras [off-list ref] writes:
quoted
Otherwise we would have to include commit.h.
Was there a reason why commit.h is not included here, just like
revision.h would include diff.h, so that users of shortlog.h do not
have to worry about including commit.h themselves?
Because you can't do:

struct diff_options;
struct diff_options diffopt;

The storage size is not known, but you can do:

struct diff_options;
struct diff_options *diffopt;

-- 
Felipe Contreras
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help