mirror of
https://github.com/Ed94/refactor.git
synced 2024-11-10 04:14:53 -08:00
13 lines
384 B
PowerShell
13 lines
384 B
PowerShell
|
[string[]] $include = '*.c', '*.cc', '*.cpp'
|
||
|
# [stirng[]] $exclude =
|
||
|
|
||
|
$path_root = git rev-parse --show-toplevel
|
||
|
$path_proj = Join-Path $path_root project
|
||
|
|
||
|
$files = Get-ChildItem -Recurse -Path $path_proj -Include $include -Exclude $exclude
|
||
|
|
||
|
$sources = $files | Select-Object -ExpandProperty FullName | Resolve-Path -Relative
|
||
|
$sources = $sources.Replace( '\', '/' )
|
||
|
|
||
|
return $sources
|