Ggit.DiffHunk¶
Fields¶
None
Methods¶
| get_header() | |
| get_new_lines() | |
| get_new_start() | |
| get_old_lines() | |
| get_old_start() | |
| ref() | |
| unref() | 
Details¶
- 
class Ggit.DiffHunk¶
- Represents the hunk of a diff. - 
get_new_lines()¶
- Returns: - the number of lines in the new file. - Return type: - int- Gets the number of lines in the new file. 
 - 
get_new_start()¶
- Returns: - the starting line number in the new file. - Return type: - int- Gets the starting line number in the new file. 
 - 
get_old_lines()¶
- Returns: - the number of lines in the old file. - Return type: - int- Gets the number of lines in the old file. 
 - 
get_old_start()¶
- Returns: - the starting line number in the old file. - Return type: - int- Gets the starting line number in the old file. 
 - 
ref()¶
- Returns: - a - Ggit.DiffHunkor- None.- Return type: - Ggit.DiffHunkor- None- Atomically increments the reference count of self by one. This function is MT-safe and may be called from any thread. 
 - 
unref()¶
- Atomically decrements the reference count of self by one. If the reference count drops to 0, self is freed. 
 
-