| 962 | } |
| 963 | |
| 964 | Git::Result Git::stashPush( std::vector<std::string> files, const std::string& name, bool keepIndex, |
| 965 | const std::string& projectDir ) { |
| 966 | std::string args; |
| 967 | if ( keepIndex ) |
| 968 | args += " --keep-index"; |
| 969 | if ( !name.empty() ) |
| 970 | args += " --message \"" + name + "\""; |
| 971 | return gitSimple( |
| 972 | String::format( "stash push --include-untracked %s -- %s", args, asList( files ) ), |
| 973 | projectDir ); |
| 974 | } |
| 975 | |
| 976 | Git::Result Git::stashApply( const std::string& stashId, bool restoreIndex, |
| 977 | const std::string& projectDir ) { |