0.2.0 • Published 12 years ago
copy_diff v0.2.0
copy_diff
Take the output of a diff program as an input stream and print modified/new files. If the output option is specified, then modified/new files are copied to specified directory.
Install
npm install -g copy_diffUsage
-o, --output <directory> copy modified files to specified directory
-h, --help show usagefiles.txt
A new_file
M sub_folder/modified_file
D deleted_fileExamples
$ copy_diff < files.txt
new_file
sub_folder/modified_file
$ copy_diff -o ./modified_files < files.txt
$ ls ./modified_files
new_file
sub_folder/modified_fileTip
You can get git to output this information by using the --name-status option.
$ git --name-status HEAD~4 HEAD | copy_diff
new_file
sub_folder/modified_file