Re: [RFC/PATCH 0/7] Rework git core for native submodules
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Apr 7, 2013, 21:30 UTC
- Message-ID
- <CALkWK0=Q-P-fGLmkoiV3_CJ43MNmFzpfkvFjNUwxB+zOsqTxmg@mail.gmail.com>
- In-Reply-To
- <20130407212342.GA19857@elie.Belkin>
Jonathan Nieder wrote:
> What's stopping the core object code of git parsing .gitmodules?
Nothing, except that it's perversely unnatural for object parsing code to parse something outside the object store.
> What > is the core object code?
parse_link_buffer(): the conventions have already been set by parse_blob_buffer(), parse_tree_buffer() etc.
> How does this compare to other metadata > files like .gitattributes and .gitignore?
.gitignore and .gitattributes are parsed in dir.c, where git "treats" worktree paths. It's quite nicely integrated.