Git::Raw::Stash - Git stash class
version 0.58
Helper class to manage stashes.
WARNING: The API of this module is unstable and may change without warning (any change will be appropriately documented in the changelog).
Save the local modifications to a new stash. Non-default options may be specified by providing the optional @opts argument. If files were stashed, this function will return a Git::Raw::Commit object, otherwise undef.
@opts
undef
Valid fields for the @opts array are:
"keep_index"
All changes already added to the index are left intact in the working directory. The default is to also stash changes in the index.
"include_untracked"
All untracked files are also stashed and then cleaned up from the working directory. The default is to leave untracked files in the working directory.
"include_ignored"
All ignored files are also stashed and then cleaned up up from the working directory. The default is to leave ignored files in the working directory.
Run $callback for every stash in the repo. The callback receives three arguments: the stash $index, the stash $message and the stash $commit, a Git::Raw::Commit object. A non-zero return value will stop the loop.
$callback
$index
$message
$commit
Remove a single stash from the stash list.
Alessandro Ghedini <alexbio@cpan.org>
Jacques Germishuys <jacquesg@striata.com>
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.