Thread (4 messages) flat view 4 messages, 4 authors, 2016-08-26

Re: [PATCH v10 0/9] submodule inline diff format

From: "Keller, Jacob E" <jacob.e.keller@intel.com>
Date: 2016-08-26 18:27:02

On Fri, 2016-08-26 at 10:35 -0700, Stefan Beller wrote:
quoted
a) read_gitfile on <path>/.git
b) if read_gitfile succeeds, use it's contents, otherwise use
<path>/.git for next steps
c) check if the resulting file is a git directory, we're fine.. we
found a gitdir, so stop.
d) otherwise,  empty the buffer, then lookup submodules
e) when submodules lookup succeeds.. see if we found a name. If so,
use that.
When the submodules lookup succeeds, we can assert the name exists.
There is currently only one way the lookup is populated, and that is
lookup_or_create_by_name in submodule-config.c:182, which fills in
the name all the time.
Yes, that was how I was trying to word it, and that's what I've done in
code.
quoted
f) if we didn't just exit with an empty buffer.

That empty buffer *should* trigger  revision error codes since it
won't point to any valid path and it also triggers the regular
error
code in add_submodule_odb so it handles that with showing not
initizlied.

This method is less work then re-implementing a _gently() variant
for
all of these functions.

Stefan, does this make sense and seem reasonable?
Sounds reasonable to me.

Thanks for working on this!
Stefan
Thanks for review!

Regards,
Jake
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help