Skip to content

Commit

Permalink
include untracked files in diff list
Browse files Browse the repository at this point in the history
  • Loading branch information
ProjektGopher committed Jan 4, 2025
1 parent fb19a6f commit 681ab1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Repositories/GitPathsRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public function diff($branch)
'committed' => tap(new Process(['git', 'diff', '--name-only', '--diff-filter=AM', "{$branch}...HEAD", '--', '**.php']))->run(),
'staged' => tap(new Process(['git', 'diff', '--name-only', '--diff-filter=AM', '--cached', '--', '**.php']))->run(),
'unstaged' => tap(new Process(['git', 'diff', '--name-only', '--diff-filter=AM', '--', '**.php']))->run(),
'untracked' => tap(new Process(['git', 'ls-files', '--others', '--exclude-standard', '--', '**.php']))->run(),
];

$files = collect($files)
Expand Down

0 comments on commit 681ab1d

Please sign in to comment.