Re: [PATCH v2 1/6] submodules: add helper functions to determine presence of submodules
- From
Jacob Keller <jacob.keller@gmail.com>
- Date
- Nov 6, 2016, 07:42 UTC
- Message-ID
- <CA+P7+xoLUCR1fJ0kZ9F4bKgbez35oah6tKU7L+A7r5iAGv29+g@mail.gmail.com>
- In-Reply-To
- <CAGZ79kYcs0FiXdP6UZGgSmUpn_3vpnKo2RwTRJCvksP7+1o_wQ@mail.gmail.com>
On Tue, Nov 1, 2016 at 10:31 AM, Stefan Beller <sbeller@google.com> wrote:
Show 21 quoted lines
> On Tue, Nov 1, 2016 at 10:20 AM, Junio C Hamano <gitster@pobox.com> wrote: > >> >> Maybe I am old fashioned, but I'd feel better to see these with >> explicit "extern" in front (check the older header files like >> cache.h when you are in doubt what the project convention has been). > > I did check the other files and saw them, so I was very unsure what to > suggest here. I only saw the extern keyword used in headers that were > there when Git was really young, so I assumed it's a style nit by kernel > developers. Thanks for clarifying! > > I think we'll want to have some consistency though, so we > maybe want to coordinate a cleanup of submodule.h as well as > submodule-config.h to mark all the functions extern. > > This doesn't need to be a all-at-once thing, but we'd keep it in mind > for future declarations in the header. > > Thanks, > Stefan
Extern is generally used when you want to declare a header for a function that's in a different object file. I'm not sure if we actually need it or not though.
Thanks, Jake