Skip to content

Maybe quarto should not add .quarto to .gitignore if it's already there #9744

@jennybc

Description

@jennybc

Bug description

I've been playing with the use of quarto and the quarto extension to preview .[R]?md files in an R package. I've noticed the following change to .gitignore:

Before (note that .quarto is present):

.Rproj.user
.Rhistory
.Rdata
.httr-oauth
.DS_Store
.quarto

After:

.Rproj.user
.Rhistory
.Rdata
.httr-oauth
.DS_Store
.quarto

/.quarto/

This does matter much in the grand scheme of things but:

  • Does quarto really need to add another entry here? I realize the leading and trailing / actually mean these entries have slightly different implications.
  • Why does quarto add the blank line?

Steps to reproduce

No response

Expected behavior

No response

Actual behavior

No response

Your environment

No response

Quarto check output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions