[RFC] move gitignore file to .devbox directory and ignore gen/profile/shell_history #215
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
With the recent use of nix-profile, the
profile
symlinks are showing up in git history.This is regrettable.
This PR adds a
.gitignore
file to.devbox
directory and ignoring thegen/
,profile*
,
nix-profile
andshell-history
symlinks.Going forward, we should avoid editing this file. Each edit will need to be checked
in by our users. So, this PR is a breaking change, in a sense.
New features we add that generate files in
.devbox
should be added insidegen/
if they want to be gitignored.
New features that we do want users to check in (like a lock file) can be placed
in
.devbox/
(and not.devbox/gen
).How was it tested?
in a new devbox project, with
git init
and initial files already committed:devbox shell
to generate the gitignore and other filesgit status
to inspect changes and found no new file changes were reported.ls -al .devbox
and saw the other files (like gen/ and profile* were generated) as well as.devbox/.gitignore
.