v.io/jiri@v0.0.0-20160715023856-abfb8b131290/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  type CommitOpt interface {
    11  	commitOpt()
    12  }
    13  type DeleteBranchOpt interface {
    14  	deleteBranchOpt()
    15  }
    16  type FetchOpt interface {
    17  	fetchOpt()
    18  }
    19  type MergeOpt interface {
    20  	mergeOpt()
    21  }
    22  type PushOpt interface {
    23  	pushOpt()
    24  }
    25  type ResetOpt interface {
    26  	resetOpt()
    27  }
    28  
    29  type FollowTagsOpt bool
    30  
    31  func (FollowTagsOpt) pushOpt() {}
    32  
    33  type ForceOpt bool
    34  
    35  func (ForceOpt) checkoutOpt()     {}
    36  func (ForceOpt) deleteBranchOpt() {}
    37  func (ForceOpt) pushOpt()         {}
    38  
    39  type MessageOpt string
    40  
    41  func (MessageOpt) commitOpt() {}
    42  
    43  type ModeOpt string
    44  
    45  func (ModeOpt) resetOpt() {}
    46  
    47  type ResetOnFailureOpt bool
    48  
    49  func (ResetOnFailureOpt) mergeOpt() {}
    50  
    51  type SquashOpt bool
    52  
    53  func (SquashOpt) mergeOpt() {}
    54  
    55  type StrategyOpt string
    56  
    57  func (StrategyOpt) mergeOpt() {}
    58  
    59  type TagsOpt bool
    60  
    61  func (TagsOpt) fetchOpt() {}
    62  
    63  type VerifyOpt bool
    64  
    65  func (VerifyOpt) pushOpt() {}