MutterCorp
MutterCorpNotice · Notícias
Programação·

Git check-ignore: parse a batch without misreading ! rules

Git check-ignore: parse a batch without misreading ! rules

Use Git’s check-ignore to tell an ignored path from an exception to an ignore rule. In a script that gets a batch of files, read the rule attached to each path instead of treating the command’s status or every printed line as an ignored file. Suppose a CI fixture directory has debug.trace, which should stay untracked, and sample.trace, a fixture that the rule should let through. Someone asks why the diagnostic reported both. Before adding another ignore rule, check what the leading exclamation…

Publicado no Notice. Categoria: Programação.

Notícias sobre o mesmo assunto em outras fontes