Re: [PATCH] bugreport: drop time.h include
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 27, 2020, 21:41 UTC
- Message-ID
- <xmqqd07s7gjr.fsf@gitster.c.googlers.com>
- In-Reply-To
- <xmqqh7x47har.fsf@gitster.c.googlers.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 12 quoted lines
> Jonathan Nieder <jrnieder@gmail.com> writes: > >> Emily Shaffer wrote: >> >>> As pointed out in >>> https://lore.kernel.org/git/20200425003002.GC17217@google.com, >> >> This breadcrumb shouldn't be needed, since the rest of the commit >> message already speaks for itself. We can save the future "git log" >> reader some time by leaing it out. > > True.
Well, removing these two lines made the rest non-sentence, so I had to rewrite the thing. I am not sure if the educational value warrants the mention of compat/ exemption, but it people find it too noisy, it can certainly be dropped.
Thanks.
-- >8 -- From: Emily Shaffer <emilyshaffer@google.com> Date: Mon, 27 Apr 2020 13:48:59 -0700 Subject: [PATCH] bugreport: do not include <time.h>
In the generic parts of the source files, system headers like <time.h> are supposed to be included indirectly by including "git-compat-util.h", which manages portability issues (platform specific compat/ sources are generally exempt from this rule).
Drop the inclusion.
Signed-off-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> --- bugreport.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/bugreport.c b/bugreport.c index 089b939a87..e4a7ed3a23 100644 --- a/bugreport.c +++ b/bugreport.c @@ -2,7 +2,6 @@ #include "parse-options.h" #include "stdio.h" #include "strbuf.h" -#include "time.h" #include "help.h" #include "compat/compiler.h"
-- 2.26.2-266-ge870325ee8