enum Agate::ApplyLocation

Overview

Locations where a diff can be applied.

repo.apply(diff, ApplyLocation::Workdir) # apply to working directory
repo.apply(diff, ApplyLocation::Index)   # apply to index only
repo.apply(diff, ApplyLocation::Both)    # apply to both

Defined in:

agate/checkout.cr

Enum Members

Workdir = 0
Index = 1
Both = 2

Instance Method Summary

Instance Method Detail

def both? #

Returns true if this enum value equals Both


[View source]
def index? #

Returns true if this enum value equals Index


[View source]
def workdir? #

Returns true if this enum value equals Workdir


[View source]