public class DescribeCommandTest extends RepositoryTestCase
ASSUME_UNCHANGED, CONTENT, CONTENT_ID, db, LENGTH, MOD_TIME, SMUDGE, trash
author, committer
Constructor and Description |
---|
DescribeCommandTest() |
Modifier and Type | Method and Description |
---|---|
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, indexState, lookup, read, resetIndex, writeTrashFile, writeTrashFile, writeTrashFiles
addRepoToClose, createBareRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, read, recursiveDelete, runHook, tearDown, tick, write, write
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 © 2015. All rights reserved.