---
name: "Git::Raw::Filter::Source"
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::Filter::Source"
---

# Git::Raw::Filter::Source(3pm)

Git filter source class

## NAME

Git::Raw::Filter::Source - Git filter source class

## VERSION

version 0.90

## DESCRIPTION

A `"Git::Raw::Filter::Source"` represents a Git filter source.

**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 filter source as a string.

### path( )

Retrieve the path that the filter source data is coming from.

### file\_mode( )

Retrieve the file mode of the source file, as an integer. If the mode is unknown, this will return 0.

### mode( )

Retrieve the mode to be applied. Possible values include:

- •

  "to\_worktree"

  The file is being exported from the Git object database to the working directory.

- •

  "to\_odb"

  The file is being import from the working directory to the Git object database.

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