Skip to content

Commit ee1091b

Browse files
Fix .gitignore to correctly exclude executables inside project directories across all platforms
1 parent 3098527 commit ee1091b

File tree

1 file changed

+32
-17
lines changed

1 file changed

+32
-17
lines changed

.gitignore

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,37 @@
1-
# GHC compiled files
1+
# GHC compiled interface and object files
22
*.hi
33
*.o
44

5-
# Executables inside project directories
6-
ackermann/ackermann
7-
catalan/catalan
8-
exp/exp
9-
fib/fib
10-
fibgmp/fibgmp
11-
fibonacci/fibonacci
12-
golden_ratio/golden_ratio
13-
n_queen/n_queen
14-
pi/pi
15-
primes/primes
16-
sqrt/sqrt
17-
tachyonic_benchmark/tachyonic_benchmark
18-
tachyonic_void/tachyonic_void
19-
tower_of_hanoi/tower_of_hanoi
5+
# Ignore only executables inside subdirectories (not the folders themselves)
6+
*/ackermann
7+
*/ackermann.exe
8+
*/catalan
9+
*/catalan.exe
10+
*/exp
11+
*/exp.exe
12+
*/fib
13+
*/fib.exe
14+
*/fibgmp
15+
*/fibgmp.exe
16+
*/fibonacci
17+
*/fibonacci.exe
18+
*/golden_ratio
19+
*/golden_ratio.exe
20+
*/n_queen
21+
*/n_queen.exe
22+
*/pi
23+
*/pi.exe
24+
*/primes
25+
*/primes.exe
26+
*/sqrt
27+
*/sqrt.exe
28+
*/tachyonic_benchmark
29+
*/tachyonic_benchmark.exe
30+
*/tachyonic_void
31+
*/tachyonic_void.exe
32+
*/tower_of_hanoi
33+
*/tower_of_hanoi.exe
2034

21-
# OS files
35+
# OS-specific files
2236
.DS_Store
37+
Thumbs.db

0 commit comments

Comments
 (0)