Method: Forgejo::Branch#hash

Defined in:
lib/forgejo/models/branch.rb

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



177
178
179
# File 'lib/forgejo/models/branch.rb', line 177

def hash
  [commit, effective_branch_protection_name, enable_status_check, name, protected, required_approvals, status_check_contexts, user_can_merge, user_can_push].hash
end