mirror of
https://gh.wpcy.net/https://github.com/CaptainCore/captaincore.git
synced 2026-04-23 05:52:46 +08:00
15 lines
251 B
PHP
Executable file
15 lines
251 B
PHP
Executable file
#! /usr/bin/env php
|
|
<?php
|
|
|
|
##
|
|
## git_status=`git status`
|
|
## modified_files=`captaincore utils git-modified-files $git_status`
|
|
##
|
|
|
|
preg_match_all(
|
|
'/modified: +(.+)/',
|
|
$argv[1],
|
|
$matches, PREG_PATTERN_ORDER
|
|
);
|
|
|
|
echo implode($matches[1], " ");
|