-
Notifications
You must be signed in to change notification settings - Fork 146
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
Can has untrack command #71
Comments
Hm, this is actually a bit tricky. How do you on a machine different from where the |
+1. |
I can see two ways this would work: either the file is removed from the castle locally and put back into its location in home, and on other machines the same thing happens there, or the file is removed from the castle locally and put back into its location in home, and on other machines we simply remove the symlink and don't create a local copy. Either way, there'll need to be tracking info in homes(h)ick. How about doing it like this? On each machine, in each castle keep a log of what files were untracked and when the castles were last updated, then sync it a la diff or changeset. |
Could an easier option be to ask user what to do? You do an update and if file is removed, you ask user if he wants to keep the local copy or not. |
I think we need to keep it simple here. To me keeping a logfile would be a big increase in complexity and the first case where there would be any need to configure/log stuff. So far, homeshick has gotten by perfectly well without that. @edvinasme
It would become quite cumbersome to go through those prompts on every single machine you update. Again, the mandate is simplicity, so prompts should really only be added if absolutely necessary.
THAT I think is the proper solution. Just move the file back to the symlink location and remove it from the castle. The same should happen on other machines, exactly like you suggest. It's the simplest solution and it would probably be what the user would expect.
Disadvantages of that approach:
The simple way
Advantages
|
@andsens +1 Sounds good. What makes sense "git-wise" is to check out the lastest version before copying it out, but as a user copying out as-is is more intuitive. Though I can imagine times where I would feel the former is more intuitive than the latter... Perhaps that should be an option? |
Any news? I'd still very welcome an untrack command |
Ping? |
@andsens @darkfeline @kastermester @sorccu Hello folks, it's been a while Tell me, is this repository still maintained? It's great and has potential. It would be sad to see it dying. Or did you find something better? |
@binarykitchen Still maintained. I fix bugs and stuff. Implementing new features though is just something that I take my sweet time doing. I have a plan for how to do this, but it might be a while. Beyond this I am thinking of reimplementing the homeshick argument parsing with docopt.sh once I find the time. The reason I'm not super active is because I consider most of homeshick "done" tbh. It works and does its job, so there's no reason to fiddle a lot with it. I use homeshick everyday on loads of machines... |
@andsens Wow, thanks. Where to start? I've already sorted the problem mentioned in this thread myself with manual git commands. The reason I posted recently is because, I'm like you, use homeshick every day, and it's wonderful, yet it has been quiet for a while. And this makes me a bit nervous when it comes to sensitive dotfiles. Imagine the Yes, if it's "done", no need to fiddle but maybe show at least it's still maintained and being cared of. Just saying. It's like removing npm packages older than 2 years from your project and finding replacements without honouring the original inventor :( |
All totally valid concerns. I should probably add a disclaimer to the readme stating something like I explained above. I've also really held back on implementing more features because right now homeshick is super easily auditable. You can jump in and with a cursory glance determine that everything is likely to be fine. If you look at the issue list you can also see that they are all enhancements. Another feature I have been kind of missing though is conditional linking and some kind of file templating/combining. Those are both pretty big things though. So I have kind of worked around it, and not needed it that much. |
still don't know what to do in homeshick if i've added a directory that's untracked in git:
I can't remove it in git unless I add to gitignore, and it's also not a symlink that i can delete in either |
Pretty please!
The text was updated successfully, but these errors were encountered: