Skip to content

Commit

Permalink
Only showing the branch name in the output (#37)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Guretzki <[email protected]>
  • Loading branch information
goergisn and Alex Guretzki authored Nov 1, 2024
1 parent e53b625 commit 8ee8c10
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ struct ProjectToOutputCommand: AsyncParsableCommand {
for: changes,
warnings: warnings,
allTargets: projectBuilderResult.swiftInterfaceFiles.map(\.name).sorted(),
oldVersionName: oldSource.description,
newVersionName: newSource.description
oldVersionName: oldSource.title,
newVersionName: newSource.title
)

// MARK: -
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,13 @@ public enum ProjectSource: Equatable, CustomStringConvertible {
return "\(repository) @ \(branch)"
}
}

public var title: String {
switch self {
case let .local(path):
return path
case let .git(branch, _):
return "\(branch)"
}
}
}

0 comments on commit 8ee8c10

Please sign in to comment.