summaryrefslogtreecommitdiff
path: root/builtin-describe.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin-describe.c')
-rw-r--r--builtin-describe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/builtin-describe.c b/builtin-describe.c
index f3ac2d5f89..aedbc78dac 100644
--- a/builtin-describe.c
+++ b/builtin-describe.c
@@ -191,8 +191,9 @@ static void describe(const char *arg, int last_one)
if (abbrev == 0)
printf("%s\n", all_matches[0].name->path );
else
- printf("%s-g%s\n", all_matches[0].name->path,
- find_unique_abbrev(cmit->object.sha1, abbrev));
+ printf("%s-%d-g%s\n", all_matches[0].name->path,
+ all_matches[0].depth,
+ find_unique_abbrev(cmit->object.sha1, abbrev));
if (!last_one)
clear_commit_marks(cmit, -1);