-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global .gitignore not respected #87
Comments
Git's config in general is ignored, so step 1 will have no effect. We should probably respect some of them to make transitioning easier.
|
I just found realized that By the way, this bug is very closely related to #65, so I'll probably fix both at around the same time (but probably not the same commit). |
#87) I want to be able to reuse the code for chaining two `.gitignore` files outside of `working_copy.rs`.
I'm about to make callers pass in "base" Git ignores when writing a tree from the working copy. `edit_diff()` will then need to pass that. It'll be easier to do that if we have a proxy on `WorkspaceCommandHelper`.
#87) I want to be able to reuse the code for chaining two `.gitignore` files outside of `working_copy.rs`.
I'm about to make callers pass in "base" Git ignores when writing a tree from the working copy. `edit_diff()` will then need to pass that. It'll be easier to do that if we have a proxy on `WorkspaceCommandHelper`.
It probably doesn't make sense to respect Git's `core.excludesFile` config when not running in a Git-backed repo, but we also already respect `.gitignore` files in the working copy regardless of backend, so at least it's consistent with that. We can revisit it when the native backend becomes a reasonable choice. Closes #87.
#87) I want to be able to reuse the code for chaining two `.gitignore` files outside of `working_copy.rs`.
I'm about to make callers pass in "base" Git ignores when writing a tree from the working copy. `edit_diff()` will then need to pass that. It'll be easier to do that if we have a proxy on `WorkspaceCommandHelper`.
It probably doesn't make sense to respect Git's `core.excludesFile` config when not running in a Git-backed repo, but we also already respect `.gitignore` files in the working copy regardless of backend, so at least it's consistent with that. We can revisit it when the native backend becomes a reasonable choice. Closes #87.
#87) I want to be able to reuse the code for chaining two `.gitignore` files outside of `working_copy.rs`.
I'm about to make callers pass in "base" Git ignores when writing a tree from the working copy. `edit_diff()` will then need to pass that. It'll be easier to do that if we have a proxy on `WorkspaceCommandHelper`.
It probably doesn't make sense to respect Git's `core.excludesFile` config when not running in a Git-backed repo, but we also already respect `.gitignore` files in the working copy regardless of backend, so at least it's consistent with that. We can revisit it when the native backend becomes a reasonable choice. Closes #87.
It probably doesn't make sense to respect Git's `core.excludesFile` config when not running in a Git-backed repo, but we also already respect `.gitignore` files in the working copy regardless of backend, so at least it's consistent with that. We can revisit it when the native backend becomes a reasonable choice. Closes #87.
#87) I want to be able to reuse the code for chaining two `.gitignore` files outside of `working_copy.rs`.
I'm about to make callers pass in "base" Git ignores when writing a tree from the working copy. `edit_diff()` will then need to pass that. It'll be easier to do that if we have a proxy on `WorkspaceCommandHelper`.
It probably doesn't make sense to respect Git's `core.excludesFile` config when not running in a Git-backed repo, but we also already respect `.gitignore` files in the working copy regardless of backend, so at least it's consistent with that. We can revisit it when the native backend becomes a reasonable choice. Closes #87.
It probably doesn't make sense to respect Git's `core.excludesFile` config when not running in a Git-backed repo, but we also already respect `.gitignore` files in the working copy regardless of backend, so at least it's consistent with that. We can revisit it when the native backend becomes a reasonable choice. Closes #87.
It probably doesn't make sense to respect Git's `core.excludesFile` config when not running in a Git-backed repo, but we also already respect `.gitignore` files in the working copy regardless of backend, so at least it's consistent with that. We can revisit it when the native backend becomes a reasonable choice. Closes #87.
#87) I want to be able to reuse the code for chaining two `.gitignore` files outside of `working_copy.rs`.
I'm about to make callers pass in "base" Git ignores when writing a tree from the working copy. `edit_diff()` will then need to pass that. It'll be easier to do that if we have a proxy on `WorkspaceCommandHelper`.
Expected Behavior
jj status
shows files which should be globally ignored:Actual Behavior
jj status
should respect global.gitignore
file by default.Steps to Reproduce the Problem
git config --global core.excludesfile ~/.gitignore_global
jj init --git-repo=.
touch .DS_Store
jj st
The same problem happens even if I create
~/.gitignore
.Specifications
The text was updated successfully, but these errors were encountered: