public class GitRepository extends Repository
datePattern, directoryName, remote, type, working
Constructor and Description |
---|
GitRepository() |
Modifier and Type | Method and Description |
---|---|
Annotation |
annotate(java.io.File file,
java.lang.String revision)
Annotate the specified file/revision.
|
boolean |
fileHasAnnotation(java.io.File file)
Checks whether this parser can annotate files.
|
boolean |
fileHasHistory(java.io.File file) |
java.io.InputStream |
getHistoryGet(java.lang.String parent,
java.lang.String basename,
java.lang.String rev)
Get an input stream that I may use to read a speciffic version of a
named file.
|
boolean |
isWorking()
Returns true if this repository is usable in this context (for SCM
systems that use external binaries, the binary must be availabe etc)
|
protected Annotation |
parseAnnotation(java.io.Reader input,
java.lang.String fileName) |
void |
update()
Update the content in this repository by pulling the changes from the
upstream repository..
|
getDateFormat
getDatePattern, getDirectoryName, getType, isRemote, setDatePattern, setDirectoryName, setRemote, setType, setWorking
public java.io.InputStream getHistoryGet(java.lang.String parent, java.lang.String basename, java.lang.String rev)
Repository
parent
- the name of the directory containing the filebasename
- the name of the file to getrev
- the revision to getpublic Annotation annotate(java.io.File file, java.lang.String revision) throws java.io.IOException
file
- file to annotaterevision
- revision to annotatejava.io.IOException
- if an error occursprotected Annotation parseAnnotation(java.io.Reader input, java.lang.String fileName) throws java.io.IOException
java.io.IOException
public boolean fileHasAnnotation(java.io.File file)
Repository
true
if annotation is supportedpublic void update() throws java.io.IOException
Repository
java.io.IOException
public boolean fileHasHistory(java.io.File file)
public boolean isWorking()
RepositoryInfo
isWorking
in class RepositoryInfo