github.com/btwiuse/jiri@v0.0.0-20191125065820-53353bcfef54/gitutil/options.go (about)

     1  // Copyright 2015 The Vanadium Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package gitutil
     6  
     7  type CheckoutOpt interface {
     8  	checkoutOpt()
     9  }
    10  
    11  type CloneOpt interface {
    12  	cloneOpt()
    13  }
    14  
    15  type CommitOpt interface {
    16  	commitOpt()
    17  }
    18  type DeleteBranchOpt interface {
    19  	deleteBranchOpt()
    20  }
    21  type FetchOpt interface {
    22  	fetchOpt()
    23  }
    24  type MergeOpt interface {
    25  	mergeOpt()
    26  }
    27  type PushOpt interface {
    28  	pushOpt()
    29  }
    30  type ResetOpt interface {
    31  	resetOpt()
    32  }
    33  
    34  type RebaseOpt interface {
    35  	rebaseOpt()
    36  }
    37  
    38  type FollowTagsOpt bool
    39  
    40  func (FollowTagsOpt) pushOpt() {}
    41  
    42  type ForceOpt bool
    43  
    44  func (ForceOpt) checkoutOpt()     {}
    45  func (ForceOpt) deleteBranchOpt() {}
    46  func (ForceOpt) pushOpt()         {}
    47  
    48  type DetachOpt bool
    49  
    50  func (DetachOpt) checkoutOpt() {}
    51  
    52  type MessageOpt string
    53  
    54  func (MessageOpt) commitOpt() {}
    55  
    56  type ModeOpt string
    57  
    58  func (ModeOpt) resetOpt() {}
    59  
    60  type ResetOnFailureOpt bool
    61  
    62  func (ResetOnFailureOpt) mergeOpt() {}
    63  
    64  type SquashOpt bool
    65  
    66  func (SquashOpt) mergeOpt() {}
    67  
    68  type StrategyOpt string
    69  
    70  func (StrategyOpt) mergeOpt() {}
    71  
    72  type FfOnlyOpt bool
    73  
    74  func (FfOnlyOpt) mergeOpt() {}
    75  
    76  type TagsOpt bool
    77  
    78  func (TagsOpt) fetchOpt() {}
    79  
    80  type FetchTagOpt string
    81  
    82  func (FetchTagOpt) fetchOpt() {}
    83  
    84  type AllOpt bool
    85  
    86  func (AllOpt) fetchOpt() {}
    87  
    88  type PruneOpt bool
    89  
    90  func (PruneOpt) fetchOpt() {}
    91  
    92  type DepthOpt int
    93  
    94  func (DepthOpt) fetchOpt() {}
    95  
    96  type UpdateShallowOpt bool
    97  
    98  func (UpdateShallowOpt) fetchOpt() {}
    99  
   100  type VerifyOpt bool
   101  
   102  func (VerifyOpt) pushOpt() {}
   103  
   104  type SharedOpt bool
   105  
   106  func (SharedOpt) cloneOpt() {}
   107  
   108  type ReferenceOpt string
   109  
   110  func (ReferenceOpt) cloneOpt() {}
   111  
   112  type NoCheckoutOpt bool
   113  
   114  func (NoCheckoutOpt) cloneOpt() {}
   115  
   116  func (DepthOpt) cloneOpt() {}
   117  
   118  type BareOpt bool
   119  
   120  func (BareOpt) cloneOpt() {}
   121  
   122  type OmitBlobsOpt bool
   123  
   124  func (OmitBlobsOpt) cloneOpt() {}
   125  
   126  type RebaseMerges bool
   127  
   128  func (RebaseMerges) rebaseOpt() {}