Свойство | Тип | Описание | |
---|---|---|---|
NEW_NAME | byte[] | ||
OLD_NAME | byte[] |
Свойство | Тип | Описание | |
---|---|---|---|
DeletedFileMode | byte[] | ||
Index | byte[] | ||
NewFileMode | byte[] |
Метод | Описание | |
---|---|---|
FileHeader ( byte b, int offset ) : System | ||
GetOldMode ( ) : FileMode |
The old file mode, if described in the patch
|
|
ToEditList ( ) : EditList |
Returns a list describing the content edits performed on this file.
|
|
addHunk ( GitSharp.Core.Patch.HunkHeader h ) : void | ||
getChangeType ( ) : ChangeTypeEnum |
The type of change this patch makes on NewName
|
|
getForwardBinaryHunk ( ) : |
If a PatchTypeEnum.GIT_BINARY, the new-image delta/literal
|
|
getNewId ( ) : AbbreviatedObjectId |
Get the new object id from the
|
|
getOldId ( ) : AbbreviatedObjectId |
Get the old object id from the
|
|
getPatchType ( ) : PatchTypeEnum |
Style of patch used to modify this file
|
|
getReverseBinaryHunk ( ) : |
If a PatchTypeEnum.GIT_BINARY, the old-image delta/literal
|
|
getScore ( ) : int |
Returns similarity score between OldName and NewName if getChangeType() is ChangeTypeEnum.COPY or ChangeTypeEnum.RENAME.
|
|
getScriptText ( ) : string |
Convert the patch script for this file into a string.
|
|
getScriptText ( |
Convert the patch script for this file into a string.
|
|
getScriptText ( |
Convert the patch script for this file into a string.
|
|
hasMetaDataChanges ( ) : bool |
True if this patch modifies metadata about a file
|
|
isHunkHdr ( byte buf, int start, int end ) : int |
Determine if this is a patch hunk header.
|
|
newHunkHeader ( int offset ) : GitSharp.Core.Patch.HunkHeader | ||
parseGitFileName ( int ptr, int end ) : int |
Parse a "diff --git" or "diff --cc" line.
|
|
parseGitHeaders ( int ptr, int end ) : int | ||
parseTraditionalHeaders ( int ptr, int end ) : int |
Метод | Описание | |
---|---|---|
ParseFileMode ( int ptr, int end ) : FileMode | ||
ParseIndexLine ( int ptr, int end ) : void | ||
ParseNewFileMode ( int ptr, int eol ) : void | ||
ParseNewName ( int ptr, int eol ) : void | ||
ParseOldName ( int ptr, int eol ) : void |
Метод | Описание | |
---|---|---|
Eq ( int aPtr, int aEnd, int bPtr, int bEnd ) : bool | ||
ExtractFileLines ( |
||
P1 ( string r ) : string | ||
ParseName ( String expect, int ptr, int end ) : string | ||
TrySimpleConversion ( |
public FileHeader ( byte b, int offset ) : System | ||
b | byte | |
offset | int | |
Результат | System |
protected ParseFileMode ( int ptr, int end ) : FileMode | ||
ptr | int | |
end | int | |
Результат | FileMode |
protected ParseIndexLine ( int ptr, int end ) : void | ||
ptr | int | |
end | int | |
Результат | void |
protected ParseNewFileMode ( int ptr, int eol ) : void | ||
ptr | int | |
eol | int | |
Результат | void |
protected ParseNewName ( int ptr, int eol ) : void | ||
ptr | int | |
eol | int | |
Результат | void |
protected ParseOldName ( int ptr, int eol ) : void | ||
ptr | int | |
eol | int | |
Результат | void |
public addHunk ( GitSharp.Core.Patch.HunkHeader h ) : void | ||
h | GitSharp.Core.Patch.HunkHeader | |
Результат | void |
public getForwardBinaryHunk ( ) : |
||
Результат |
public getReverseBinaryHunk ( ) : |
||
Результат |
public getScriptText ( |
||
charsetGuess |
/// optional array to suggest the character set to use when
/// decoding each file's line. If supplied the array must have a
/// length of
/// representing the old revision character sets and the new
/// revision character set.
/// |
|
Результат | string |
public getScriptText ( |
||
oldCharset | hint character set to decode the old lines with. | |
newCharset | hint character set to decode the new lines with. | |
Результат | string |
public static isHunkHdr ( byte buf, int start, int end ) : int | ||
buf | byte | the buffer to scan |
start | int | first position in the buffer to evaluate |
end | int |
/// last position to consider; usually the end of the buffer
/// (buf.length ) or the first position on the next
/// line. This is only used to avoid very long runs of '@' from
/// killing the scan loop.
/// |
Результат | int |
public newHunkHeader ( int offset ) : GitSharp.Core.Patch.HunkHeader | ||
offset | int | |
Результат | GitSharp.Core.Patch.HunkHeader |
public parseGitFileName ( int ptr, int end ) : int | ||
ptr | int | /// first character After the "diff --git " or "diff --cc " part. /// |
end | int | /// one past the last position to parse. /// |
Результат | int |
public parseGitHeaders ( int ptr, int end ) : int | ||
ptr | int | |
end | int | |
Результат | int |
public parseTraditionalHeaders ( int ptr, int end ) : int | ||
ptr | int | |
end | int | |
Результат | int |
protected static byte[] DeletedFileMode | ||
Результат | byte[] |