Skip to content

Commit 783672f

Browse files
committed
submodule: remove the RESET enum values
These are not useful anymore, as we don't affect the instance's configuration.
1 parent 0496330 commit 783672f

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

include/git2/submodule.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,7 @@ GIT_EXTERN(int) git_submodule_set_ignore(
459459
* Get the update rule that will be used for the submodule.
460460
*
461461
* This value controls the behavior of the `git submodule update` command.
462-
* There are four useful values documented with `git_submodule_update_t`
463-
* plus the `GIT_SUBMODULE_UPDATE_RESET` which can be used to revert to
464-
* the on-disk setting.
462+
* There are four useful values documented with `git_submodule_update_t`.
465463
*
466464
* @param submodule The submodule to check
467465
* @return The current git_submodule_update_t value that will be used

include/git2/types.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ typedef struct git_submodule git_submodule;
337337
*
338338
* The values are:
339339
*
340-
* - GIT_SUBMODULE_UPDATE_RESET: reset to the on-disk value.
341340
* - GIT_SUBMODULE_UPDATE_CHECKOUT: the default; when a submodule is
342341
* updated, checkout the new detached HEAD to the submodule directory.
343342
* - GIT_SUBMODULE_UPDATE_REBASE: update by rebasing the current checked
@@ -350,8 +349,6 @@ typedef struct git_submodule git_submodule;
350349
* when we don't want any particular update rule to be specified.
351350
*/
352351
typedef enum {
353-
GIT_SUBMODULE_UPDATE_RESET = -1,
354-
355352
GIT_SUBMODULE_UPDATE_CHECKOUT = 1,
356353
GIT_SUBMODULE_UPDATE_REBASE = 2,
357354
GIT_SUBMODULE_UPDATE_MERGE = 3,
@@ -401,15 +398,12 @@ typedef enum {
401398
*
402399
* Represent the value of `submodule.$name.fetchRecurseSubmodules`
403400
*
404-
* * GIT_SUBMODULE_RECURSE_RESET - reset to the on-disk value
405401
* * GIT_SUBMODULE_RECURSE_NO - do no recurse into submodules
406402
* * GIT_SUBMODULE_RECURSE_YES - recurse into submodules
407403
* * GIT_SUBMODULE_RECURSE_ONDEMAND - recurse into submodules only when
408404
* commit not already in local clone
409405
*/
410406
typedef enum {
411-
GIT_SUBMODULE_RECURSE_RESET = -1,
412-
413407
GIT_SUBMODULE_RECURSE_NO = 0,
414408
GIT_SUBMODULE_RECURSE_YES = 1,
415409
GIT_SUBMODULE_RECURSE_ONDEMAND = 2,

0 commit comments

Comments
 (0)