]> source.dussan.org Git - jgit.git/commit
Make JGit describe behaves same as c-git for lightweight tags 35/124435/3
authorMarcel Trautwein <me+eclipse@childno.de>
Fri, 23 Feb 2018 06:27:52 +0000 (07:27 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 13 Jun 2018 07:37:47 +0000 (09:37 +0200)
commit5429d1a0cff593bf28186c38fde7e41798a2c0b8
tree5f144268f32ecb4b773b40a64f503526d83bc814
parent01c52a58f66e1582e5c0cea17801fb347f3163c9
Make JGit describe behaves same as c-git for lightweight tags

JGit now considers lightweight tags only if the --tags option is set
i.e. `git.describe().setAllTags(true)` has to be set, else the default
is now as in c git:

Only annotated tags are evaluated unless you pass true
equivalent to --tags (or --all) by the option setAllTags.

Hint: This (still) doesn't address any difference between c-git
`--all` and `!--all --tags` behavior;
perhaps this might be a follow up request

Bug: 423206
Change-Id: I9a3699756df0b9c6a7c74a7e8887dea0df17c8e7
Signed-off-by: Marcel Trautwein <me+eclipse@childno.de>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/DescribeCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/DescribeCommand.java