---
name: "Git::Raw::Diff::Hunk"
section: "3pm"
platform: "linux"
package: "libgit-raw-perl"
version: "0.90+ds-3+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Git::Raw::Diff::Hunk"
---

# Git::Raw::Diff::Hunk(3pm)

Git diff hunk class

## NAME

Git::Raw::Diff::Hunk - Git diff hunk class

## VERSION

version 0.90

## DESCRIPTION

A Git::Raw::Diff::Hunk represents a hunk in a patch.

**WARNING**: The API of this module is unstable and may change without warning (any change will be appropriately documented in the changelog).

## METHODS

### old\_start( )

Starting line number in `"old_file"`.

### old\_lines( )

Number of lines in `"old_file"`.

### new\_start( )

Starting line number in `"new_file"`.

### new\_lines( )

Number of lines in `"new_file"`.

### header( )

Header text.

## AUTHOR

Alessandro Ghedini \<alexbio@cpan.org\>

Jacques Germishuys \<jacquesg@cpan.org\>

## LICENSE AND COPYRIGHT

Copyright 2014 Alessandro Ghedini.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.
