Skip to content
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

FR: jj untrack --local, jj untrack --ignore #3493

Open
lf- opened this issue Apr 12, 2024 · 0 comments
Open

FR: jj untrack --local, jj untrack --ignore #3493

lf- opened this issue Apr 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@lf-
Copy link

lf- commented Apr 12, 2024

Is your feature request related to a problem? Please describe.
I want to be able to easily untrack a file and have it stick without having to manually edit a gitignore/.git/info/exclude file. This could be achieved by automatically editing the relevant gitignore file (probably the nearest one to the file for --ignore?) to add the file, and for --local, .git/info/exclude.

Describe the solution you'd like
jj untrack could be taught how to make untracking sticky, and print a warning if the file will get immediately tracked again suggesting the command that sticks the untracking.

Describe alternatives you've considered

Status quo: have to open an editor/type another command to do the untracking operation.
Reduce the necessity for untracking things (see #323).

Additional context
Add any other context or screenshots about the feature request here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants