-
Notifications
You must be signed in to change notification settings - Fork 41
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
Possible git usage #24
Comments
Hi Dr Emann, I've actually been thinking about it too. Now personnally, while it's a probably fun and interesting idea to work on, it's just not something I felt was really urgent so I just "forgot" it somehow. Just feel free to do it, I'll totally merge what you'll come up with. |
Heh, yea, no big rush for it, then. Still would be interesting. You could even write a script to make tags for all the existing ones, and push them into it as well, keeping the same hash. I thought of two possible implementations. Separate repositories, pushing to a central, master repoThis will work because git hard-links objects when cloning locally, and you can run Linked git dirUsing
|
Well this is quite beyond my git knowledge actually... The second solution seems more natural, though, at least the part that says "all the folder share the same git directory". ITOH, since space is not really an issue, maybe we should focus on the actual features git could provide besides saving space. As already said, I've been thinking about allowing one to clone his "project" like a gist. In the same spirit, being able to navigate through versions directly on the website would be fun. I'm quite lost, actually :p |
Yea, I was up late last night reading up on the internals of git. I think the first option would be easier, and more safe. It sounds almost exactly like what you suggested, actually, to have one bare repository, and then each directory would pull from the central repository, then push new commits in. Each new commit would require a new branch (so that they don't get garbage collected). The way I see it, it would work like this:
Then later:
Because each commit is based off of the example that the user started hacking from, the history would automatically include the chain of examples that lead to it. A "clone" would be implied by starting at an existing example, and saving something new. |
Sounds good, except maybe the part with "oldest last-modified", which I don't really get. |
I was wondering how large the try-haxe folder is getting, with auto-branching. If space becomes a problem, I thought of a solution using git as as a repository to store all of the saved examples, and checking them out to a set number of folders.
Pros
Cons
If you think this would be a worthwhile idea, I can start work on forking and working on an implementation, but I'd rather not start work on something that's not worthwhile/won't ever be used.
The text was updated successfully, but these errors were encountered: