We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b583252 commit dc19fcaCopy full SHA for dc19fca
home/git.nix
@@ -65,9 +65,9 @@
65
# files from index or from commits
66
f = "!f() {
67
if [ -z \"$1\" ]; then
68
- git ls-files -dmo
+ git ls-files --modified --others --exclude-standard | grep -Ev '^(vendor/|go.(mod|sum)$)'
69
else
70
- git show -m --pretty=tformat: --name-only $1
+ git show -m --pretty=tformat: --name-only @ | grep -Ev '^(vendor/|go.(mod|sum)$)'
71
fi
72
}; f";
73
0 commit comments