(configuration config.Configuration)
| 212 | } |
| 213 | |
| 214 | func (branch Branch) hasLocalCommits(configuration config.Configuration) bool { |
| 215 | local := silentgit("for-each-ref", "--format=%(objectname)", "refs/heads/"+branch.Name) |
| 216 | remote := silentgit("for-each-ref", "--format=%(objectname)", "refs/remotes/"+branch.remote(configuration).Name) |
| 217 | return local != remote |
| 218 | } |
| 219 | |
| 220 | func (branch Branch) hasUnpushedCommits(configuration config.Configuration) bool { |
| 221 | countOutput := silentgit( |