Skip to content

Commit 5e073c6

Browse files
committed
Excludes files for src option
1 parent 5d6189b commit 5e073c6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
77

88
## [Unreleased]
99

10+
## [v4.3.2] - 2025-02-10
11+
12+
### Added
13+
- The tree command with the `--src` option now exludes files from `.gitignore` and the `.git` directory.
14+
1015
## [v4.3.1] - 2025-02-07
1116

1217
### Added

src/Tree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(Archive $archive)
3030
public function getTreeForSrc(string $directory): string
3131
{
3232
\exec(
33-
'tree -aL 1 --dirsfirst ' . \escapeshellarg($directory) . ' 2>&1',
33+
'tree -aL 1 --dirsfirst ' . \escapeshellarg($directory) . ' --gitignore -I .git 2>&1',
3434
$output
3535
);
3636

0 commit comments

Comments
 (0)