]> source.dussan.org Git - jgit.git/commit
DescribeCommand: Add support for --abbrev=0 06/191006/2
authorMatthias Sohn <matthias.sohn@sap.com>
Sun, 20 Feb 2022 11:03:22 +0000 (12:03 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 2 Mar 2022 08:56:03 +0000 (09:56 +0100)
commita2d5650b8fc6775cc8684550d205502c70ab8771
tree67fb59a1befdc64e0ce00952c2d6968fa07d2e37
parent00bb7cc9a5bb1627c3ef8f2e4a5886e79afba189
DescribeCommand: Add support for --abbrev=0

Setting --abbrev=0 suppresses long format and only shows the closest tag
[1].

[1] https://git-scm.com/docs/git-describe#Documentation/git-describe.txt---abbrevltngt

Change-Id: Ifcf4d7786dd0f0fb0315d8093fdb54384ed9d5f9
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/DescribeCommandTest.java
org.eclipse.jgit/src/org/eclipse/jgit/api/DescribeCommand.java