Creation of/Modifications to the .gitignore file when running quarto render #6005
Closed
jakobarendt
started this conversation in
Feature Requests
Replies: 1 comment 3 replies
-
It should be easy easy enough to tweak the regex to avoid having both exclusion with and without leading To note, the quarto-cli/src/project/project-gitignore.ts Lines 7 to 94 in 7414705 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Thank you so much to all for developing the incredibly powerful Quarto! I am currently writing my master's thesis with your software, and I am only starting to grasp what it can do.
One thing I have noticed, is that it makes some changes to my
.gitignore
file, when I runquarto render
for my quarto book project. You have already explained this further in this answer.In my case, however, it adds
/.quarto/
as an item to the.gitignore
file, even though I already have.quarto
in it. To my understanding of the syntax, the latter is even more "restrictive" than the former in the sense that it always excludes.quarto
directories/files independently of where are they are stored relative to the.gitignore
file.I imagine that you still had you reasons for implementing it the way it is now. Why does
quarto render
not acknowledge.quarto
as a.gitignore
parameter?Another aspect that I want to mention here is that having
quarto render
acknowledge the more restrictive.quarto
exclusion would make it more consistent with the R commandusethis::git_vaccinate()
, since there the ignore parameter is also.quarto
.Quarto version: 1.3.361
Machine: macOS Ventura 13.4
Beta Was this translation helpful? Give feedback.
All reactions