Method: Forgejo::Branch#==
- Defined in:
- lib/forgejo/models/branch.rb
#==(o) ⇒ Object
Checks equality by comparing each attribute.
155 156 157 158 159 160 161 162 163 164 165 166 167 |
# File 'lib/forgejo/models/branch.rb', line 155 def ==(o) return true if self.equal?(o) self.class == o.class && commit == o.commit && effective_branch_protection_name == o.effective_branch_protection_name && enable_status_check == o.enable_status_check && name == o.name && protected == o.protected && required_approvals == o.required_approvals && status_check_contexts == o.status_check_contexts && user_can_merge == o.user_can_merge && user_can_push == o.user_can_push end |