git_ignore: Title: Add a pattern to a .gitignore file

View source: R/functions.R

git_ignoreR Documentation

Title: Add a pattern to a .gitignore file

Description

Title: Add a pattern to a .gitignore file

Usage

git_ignore(patterns, ignorepath = ".", preamble = "")

Arguments

patterns

A character vector of patterns to ignore. Required. Always appended. If you need to un-ignore something you will have to edit .gitignore manually.

ignorepath

Path to .gitignore (you can have multiple ones) current directory by default.

preamble

What to put in the line/s before a set of ignore patterns. Empty line by default, set to NULL if you want to not skip a line.

Examples

git_ignore(c('*.csv','*.tsv'))

bokov/tidbits documentation built on Jan. 26, 2024, 6:25 p.m.