summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYurii Rashkovskii <yrashk@gmail.com>2011-08-13 13:53:28 -0700
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2011-08-27 15:38:54 +0200
commit15b7798e46e8d4f709d1a37b93adfc073e167d73 (patch)
tree83d90c7b6d959a6bfaea44be0e5d50591955f649 /src
parent8376693a3f7f58e2623b205445aa603a59aab5e3 (diff)
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)
Diffstat (limited to 'src')
-rw-r--r--src/rebar_app_utils.erl2
1 files changed, 1 insertions, 1 deletions
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";