clone: refactor to pass clone options around

Instead of dealing with the clone options sub-options (fetch, checkout,
etc) individually, treat them as a cohesive whole when passing them
throughout the system.

Additionally, move some functions around within the file to avoid
unnecessary decls at the top of the file.  And change a function
signature to avoid conflating truth with error.
This commit is contained in:
Edward Thomson
2022-03-01 09:56:08 -05:00
parent 933b62eedf
commit 69555048fd
4 changed files with 239 additions and 182 deletions

View File

@@ -189,7 +189,7 @@ typedef enum {
*/
GIT_CHECKOUT_NONE = (1u << 30),
/**
/*
* THE FOLLOWING OPTIONS ARE NOT YET IMPLEMENTED
*/