#dev | Logs for 2017-06-28

« return
[06:29:08] <FatPhil> Hmmm, does it ever make sense to have two git repos sharing the same directory?
[06:34:44] <FatPhil> You'd obviously need a different $GIT_DIR to deal with each subset. Pretty annoying, but doable at a push?
[09:25:16] <TheMightyBuzzard> no, i don't believe it would
[09:31:37] <FatPhil> Well, I have a situation where I'm thinking of using it.
[09:31:54] <FatPhil> I have my code and the data it works on in the same directory.
[09:32:08] <FatPhil> I want both under version control, and I want to share my code, but not my data.
[09:33:38] <FatPhil> I could shuffle off my data to a subdirectory, of course.
[09:54:42] <TheMightyBuzzard> hard links
[09:55:05] <TheMightyBuzzard> or, yeah, subfolder that goes in .gitignore
[09:55:35] <FatPhil> gitignore is the real problem with the scheme
[09:55:40] <TheMightyBuzzard> then make its own repo out of the subfolder
[09:56:45] <TheMightyBuzzard> or make a proper folder on the same level as your code and symlink it as the data folder in your code dir
[09:57:11] <TheMightyBuzzard> or make your code able to take data location as an argument or config variable
[09:57:38] <TheMightyBuzzard> any of the above should work
[09:57:44] <FatPhil> As I'd want to ignore script changes when interested in data changes and vice versa.
[09:58:45] <FatPhil> I'd have to have repository-specific .gitignore files - so two of them!
[09:58:47] <TheMightyBuzzard> if you put ~/code/data in ~/code/.gitignore and then created ~/code/data as its own separate git repo you'd have no issues
[09:59:32] <FatPhil> I'm thinking both/.git_for_code/.gitignore and both/.git_for_data/.gitignore
[09:59:55] <TheMightyBuzzard> what, with hard links or something?
[10:00:07] <FatPhil> Nope, nothing underhand
[10:00:31] <FatPhil> just use of $GIT_DIR to select which of the two views you're interested in.
[10:00:45] <TheMightyBuzzard> how bout just cd into the dir
[10:00:54] <TheMightyBuzzard> GIT_DIR defaults to .
[10:01:11] <FatPhil> too lazy. I'd rather play with madness.
[10:01:42] <TheMightyBuzzard> aight but i'm pretty sure you're doing it the insanely hard way.
[10:02:55] <TheMightyBuzzard> the proper way of course would just be to have an entirely separate dir and separate git repo for data and make your program able to take data location as a variable
[10:02:59] <FatPhil> and your program in Rust - sometimes masochism's fun!
[10:04:59] <TheMightyBuzzard> that reminds me, i need to send in a bug report to the guy who writes my rust irc library. he tried to make an already threadsafe library threadsafe and made it crash when used multi-threaded instead
[10:06:39] <FatPhil> :-D
[11:09:13] <FatPhil> https://github.com