Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lefou committed Jun 22, 2020
1 parent 5073fb9 commit 0fe1159
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions core/src/de/tobiasroeser/mill/vcs/version/VcsVersion.scala
Original file line number Diff line number Diff line change
Expand Up @@ -79,44 +79,6 @@ trait VcsVersion extends Module {
dirtyHash = dirtyHashCode
)




// val dirtySuffix = dirtyHashCode.map(dirtyPrefix + "_")


//
// tag match {
// case Some(t) =>
// (t, t)
// case None =>
// val latestTaggedVersion = os
// .proc('git, 'describe, "--abbrev=0", "--always", "--tags")
// .call()
// .out
// .trim
//
// val commitsSinceLastTag =
// os.proc(
// 'git,
// "rev-list",
// curHead,
// "--not",
// latestTaggedVersion,
// "--count"
// )
// .call()
// .out
// .trim
// .toInt
//
// VcsState(
// currentRevision = curHead,
// lastTag = Option(latestTaggedVersion).filter(_.nonEmpty),
// commitsSinceLastTag = commitsSinceLastTag
// s"$latestTaggedVersion-$commitsSinceLastTag-${gitHead().take(6)}$dirtySuffix"
// )
// }
}

}
Expand Down

0 comments on commit 0fe1159

Please sign in to comment.