query
On this page

gitTracked

lib.fileset.gitTracked

Docs pulled from | This Revision | 10 minutes ago


Create a file set containing all Git-tracked files in a repository.

This function behaves like gitTrackedWith { } - using the defaults.

Inputs

path

The path to the working directory of a local Git repository. This directory must contain a .git file or subdirectory.

Type

gitTracked :: Path -> FileSet

Examples

lib.fileset.gitTracked usage example

# Include all files tracked by the Git repository in the current directory
gitTracked ./.

# Include only files tracked by the Git repository in the parent directory
# that are also in the current directory
intersection ./. (gitTracked ../.)

Noogle detected

Implementation

The following is the current implementation of this function.

gitTracked = path: _fromFetchGit "gitTracked" "argument" path { };