Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(auto-pr): Fix git status detection
- Reverts: ScoopInstaller#3026 See https://git-scm.com/docs/git-status#_short_format If the file was modified it shows ` M` and `M ` means it's staged. Files only containing whitespaces don't get staged by `git add` and we only care about actually staged files. Since the order of the `git status`-output is not sorted anymore the `Select-Object -First 1` is useless and it now uses `Where-Object` to find the correct line.
- Loading branch information