-
Notifications
You must be signed in to change notification settings - Fork 372
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: Support git status
-based working copy snapshotting
#2920
Comments
Do you just mean running It's not yet implemented, but I think it'd be nice if something like |
If |
git status
-based jj status
git status
-based working copy snapshotting
Well, I guess it depends on what you mean by "running
|
I think I see what you mean now. I read the part of your original post about the What do you mean by "Would handle submodules (if unchanged)."? I'm guessing you want to have a line in Some disorganized first thoughts:
I think we'd still want to do a snapshot on One situation where this wouldn't work at all (I think) is if the repo has conflicted files. I suppose we could fall back to normal The problem of be handling tree entries that have hashes for objects that jj hasn't seen will have to be handled eventually, it'd be needed for any kind of large file support. Currently, |
Update: I had some work in progress here https://github.com/arxanas/jj/commits/5cc4c396ac01cbc1c55f6295cfecf21d852cb747/, which was successfully snapshotting based on |
Currently,
jj status
crawls the filesystem itself or uses anfsmonitor
(currently only Watchman). We could add anotherfsmonitor
that callsgit status
to get status information. Advantages:jj status
/jj diff
due to case-insensitivity, such as for gecko-dev #1737Additional context
Here's some issues that this might help (or have helped) to resolve/work around (to various degrees):
jj status
with large numbers of ignored files #247jj status
/jj diff
due to case-insensitivity, such as for gecko-dev #1737node_modules
subdirectory #1785jj status
reports link in Fuchsia repo as removed #2878jj
ignoring trailing slash in.gitignore
#4718jj file untrack
work with files that are not ignored #5225The text was updated successfully, but these errors were encountered: