enum Agate::MergePreference

Overview

Merge preference flags from repository configuration.

analysis, preference = repo.merge_analysis([annotated_commit])
if preference.fastforward_only?
  # repo configured to only allow fast-forward merges
end

Defined in:

agate/checkout.cr

Enum Members

None = 0
FastforwardOnly = 2
All = 2

Instance Method Summary

Instance Method Detail

def fastforward_only? #

Returns true if this enum value contains FastforwardOnly


[View source]
def none? #

Returns true if this enum value contains None


[View source]