Skip to content

Commit

Permalink
simplify ignore syntax for dot files
Browse files Browse the repository at this point in the history
  • Loading branch information
haya14busa committed Oct 5, 2019
1 parent 07dce9d commit 92a6cad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/ghglob/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ func main() {
func glob() {
ps := flag.Args()
if !*all && shouldIgnoreDot(ps) {
ps = append(ps, "!**/.*")
ps = append(ps, "!**/.*/**")
ps = append(ps, "!**/.**")
}
opt := ghglob.Option{FollowSymbolicLinks: *followSym}
if shouldRoot(flag.Args()) {
Expand Down

0 comments on commit 92a6cad

Please sign in to comment.