From 15b7798e46e8d4f709d1a37b93adfc073e167d73 Mon Sep 17 00:00:00 2001 From: Yurii Rashkovskii Date: Sat, 13 Aug 2011 13:53:28 -0700 Subject: Add precise git versioning of multiple apps Allows using tools like git-subtree and still maintaining proper git-based vsns for those "imported" subtrees. Also helps understanding what was the last change introduced to a specific application within a multi-application repository (at this moment, all applications that reside in the same repository, will share the same autogenerated git vsn) --- src/rebar_app_utils.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rebar_app_utils.erl b/src/rebar_app_utils.erl index 285bb5e..7cdf00c 100644 --- a/src/rebar_app_utils.erl +++ b/src/rebar_app_utils.erl @@ -163,7 +163,7 @@ vcs_vsn(Vcs, Dir) -> end end. -vcs_vsn_cmd(git) -> "git describe --always --tags"; +vcs_vsn_cmd(git) -> "git describe --always --tags `git log -n 1 --pretty=format:%h .`"; vcs_vsn_cmd(hg) -> "hg identify -i"; vcs_vsn_cmd(bzr) -> "bzr revno"; vcs_vsn_cmd(svn) -> "svnversion"; -- cgit v1.1