GIT-STAGE-BATCH-BLOCK-FILE(1)

NAME
git-stage-batch-block-file - permanently exclude a file or directory from reviews

SYNOPSIS
git-stage-batch block-file [--local-only] [PATH]

DESCRIPTION
block-file adds a file or directory to .gitignore, records it in session state, and skips all matching hunks automatically in future sessions. If PATH is omitted, the selected hunk's file is used.

When PATH refers to a directory, it is stored with a trailing slash so that all files under that directory are suppressed. A bare name such as build is treated as a directory if one exists on disk at that path.

OPTIONS

--local-only
    Write the ignore entry to .git/info/exclude instead of .gitignore. The entry is kept out of the repository and never committed.

SEE ALSO
git-stage-batch(1), git-stage-batch-unblock-file(1)