danielgp / git-operations
使GIT重复操作变得简单
1.0.6
2022-06-13 13:23 UTC
Requires
- php: ^5.4 || ^5.5 || ^5.6 || ^7.0 || ^7.1 || ^7.2 || ^7.3 || ^7.4 || ^8.0 || ^8.1
- ext-json: *
- danielgp/io-operations: ^1
README
使GIT重复操作变得简单
这个仓库是做什么用的?
这个仓库旨在简化各种GIT操作
我该和谁联系?
仓库所有者是: Daniel Popiniuc
使用方法
- 通过运行
<git_binary_path>git.exe log --decorate --oneline --no-abbrev-commit --pretty=tformat:\"%%an;%%ae;%%cn;%%ce;%%T;%%H;%%aI;%%cI;%%D;%%s;%%-\" --shortstat > <your_path_where_results_will_be_stored><results_file_name_raw>
生成CSV输出。由于此文件将包含一些空行和不规则行以突出显示文件更改、插入或删除,请在其中插入。 - 要将先前生成的文件标准化为正确的CSV格式,请运行
<php_binary_path>php.exe -c <php_configuration_path>php.ini <path_where_this_package_resides_on_your_hdd>/source/HandleGitLogOutput.php --strInputFormat=<git_log_switches> --strInputPath=<results_file_path> --strInputFileName=<results_file_name_raw> --strOutputHeaderLabel=<label_configured_in_json_file_containing_list_of_meaningfull_words> --strOutputPath=<results_file_path_final> --strOutputFileName=<results_file_name_final>