Git::Raw::Index - Git index class
version 0.33
A Git::Raw::Index represents an index in a Git repository.
Git::Raw::Index
WARNING: The API of this module is unstable and may change without warning (any change will be appropriately documented in the changelog).
Add $entry to the index. $entry should either be the path of a file or alternatively a Git::Raw::Index::Entry.
$entry
Git::Raw::Index::Entry
Remove $path from the index.
$path
Clear the index.
Update the index reading it from disk.
Write the index to disk.
Replace the index contente with $tree.
$tree
Create a new tree from the index and write it to disk. $repo optionally indicates which Git::Raw::Repository the tree should be written to.
$repo
Git::Raw::Repository
Update files in the working tree to match the contents of the index. See Git::Raw::Repository->checkout() for valid %checkout_opts values.
Git::Raw::Repository->checkout()
%checkout_opts
Retrieve index entries. Returns a list of Git::Raw::Index::Entry objects.
Add or update index entries to represent a conflict. $ancestor, $ours and $theirs should be Git::Raw::Index::Entry objects, or be undef.
$ancestor
$ours
$theirs
Remove $file from the index.
$file
Determine if the index contains entries representing file conflicts.
Remove all conflicts in the index (entries with a stage greater than 0).
Retrieve index entries that represent a conflict. Returns a list of Git::Raw::Index::Entry objects.
Alessandro Ghedini <alexbio@cpan.org>
Copyright 2012 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.
To install Git::Raw, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git::Raw
CPAN shell
perl -MCPAN -e shell install Git::Raw
For more information on module installation, please visit the detailed CPAN module installation guide.