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

git config breaks file-tracking #11

Open
nycksw opened this issue Feb 2, 2023 · 0 comments
Open

git config breaks file-tracking #11

nycksw opened this issue Feb 2, 2023 · 0 comments
Assignees

Comments

@nycksw
Copy link
Owner

nycksw commented Feb 2, 2023

I did:

git config --global init.defaultBranch main

Which adds defaultBranch = main to ~/.gitconfig, but I noticed the changes weren't reflected in ~/.ocd/.gitconfig. So, I checked the inodes for both files, and it looks like git config is replacing ~/.gitconfig entirely, creating a new file with a new inode, so it's no longer linked to the files in ~/.ocd.

I don't really know wtf to do about that. I could add some kind of thing that checks all the files to see if inodes have changed, but that feels clunky. When does it run? What happens if it finds changes? Should it notify the user?

@nycksw nycksw self-assigned this Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant