mbox series

[0/1,RFC,GSoC] submodule: enforcing stricter checks

Message ID 20200211170359.31835-1-shouryashukla.oo@gmail.com (mailing list archive)
Headers show
Series submodule: enforcing stricter checks | expand

Message

Shourya Shukla Feb. 11, 2020, 5:03 p.m. UTC
Greetings everyone!

I have tried to improve the checks in some functions of 'submodule.c'
and attempted to make them stricter. Initially, not all conditions were
satisfied by the functions 'update_path_in_gitmodules()' and
'remove_path_from_gitmodules()' while changing(updating/removing paths)
the '.gitmodules' file.

Now, on implementing the 'is_writing_gitmodules_ok()' function in one of the
if cases of the functions, all the conditions are checked before returning a
value unlike before.

Thanks,
Shourya Shukla

Shourya Shukla (1):
  submodule: using 'is_writing_gitmodules_ok()' for a stricter check

 submodule.c | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)