---
name: "Git::Raw::Diff::File"
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::File"
---

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

Git diff file class

## NAME

Git::Raw::Diff::File - Git diff file class

## VERSION

version 0.90

## DESCRIPTION

A Git::Raw::Diff::File represents one side of a diff delta.

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

## METHODS

### id( )

Retrieve the id of the diff file as a string.

### path( )

Retrieve the path of the diff file.

### size( )

Retrieve the size of the diff file.

### flags( )

Retrieve the flags associated with the delta. Returns an array reference with zero or more of the following:

- •

  "binary"

  Files treated as binary data.

- •

  "valid\_id"

  `"id"` value is known correct.

### mode( )

Retrieve the diff file mode. Returns one of the following:

- •

  "unreadable"

- •

  "tree"

- •

  "blob"

- •

  "blob\_executable"

- •

  "link"

- •

  "commit"

## 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.
