public class DescribeCommandTest extends RepositoryTestCase
Modifier and Type | Field and Description |
---|---|
boolean |
useAnnotatedTags |
db, trash
ASSUME_UNCHANGED, author, committer, CONTENT, CONTENT_ID, LENGTH, mockSystemReader, MOD_TIME, SMUDGE
Constructor and Description |
---|
DescribeCommandTest() |
Modifier and Type | Method and Description |
---|---|
static Collection<Boolean[]> |
getUseAnnotatedTagsValues() |
void |
noTargetSet() |
void |
setUp() |
void |
t1DominatesT2()
When t2 dominates t1, it's clearly preferable to describe by using t2.
|
void |
t1nearerT2()
When t1 is nearer than t2, t2 should be found
|
void |
t1sameDepthT2()
When t1 and t2 have same depth native git seems to add the depths of both
paths
|
void |
testDescribe() |
void |
testDescribeBranch()
Make sure it finds a tag when not all ancestries include a tag.
|
assertEqualsFile, check, checkFile, checkoutBranch, commitFile, copyFile, createBranch, createEntry, createEntry, createEntry, deleteTrashFile, fsTick, indexState, lookup, read, resetIndex, slashify, writeLink, writeTrashFile, writeTrashFile, writeTrashFiles
addRepoToClose, createBareRepository, createRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tearDown, tick, write, write
public static Collection<Boolean[]> getUseAnnotatedTagsValues()
public void setUp() throws Exception
setUp
in class RepositoryTestCase
Exception
public void testDescribeBranch() throws Exception
c1 -+-> T - | | +-> c3 -+-> c4
Exception
public void t1DominatesT2() throws Exception
t1 -+-> t2 - | | +-> c3 -+-> c4
Exception
public void t1nearerT2() throws Exception
c1 -+-> c2 -> t1 -+ | | +-> t2 -> c3 -+-> c4
Exception
Copyright © 2018 Eclipse JGit Project. All rights reserved.