News for hackers. Stuff that matters.
Re:Show HN: Local Node.js app to save everything you browse ... by oefrha on Sunday December 22, 2019 @06:59AM (#21856695)
git is pretty bad at handling large binary blobs. Good old timestamped directories with hardlinks (a la rsync --link-dest) probably works better.
Re:Show HN: Local Node.js app to save everything you browse ... by fit2rule on Sunday December 22, 2019 @08:57AM (#21857113)
Git isn't that bad at handling binary blobs - as long as you enable LFS support, and your git repo is served locally, as suggested, you'll do fine.
Re:Show HN: Local Node.js app to save everything you browse ... by oefrha on Sunday December 22, 2019 @09:10AM (#21857174)
> as long as you enable LFS support

You still end up with two copies of the same file, one in the local LFS “server”, one in the work tree, no? (I only played with LFS a bit many years ago when it first came out, so I could be wrong.) Unless you take into account deduplication built into certain filesystems.

Re:Show HN: Local Node.js app to save everything you browse ... by fit2rule on Sunday December 22, 2019 @09:17AM (#21857202)
You don't get copies until you need them - thats the point entirely. More details here:

https://www.atlassian.com/git/tutorials/git-lfs

Also saves you from beating up your index with every change.

I've been using GIT LFS for the last 6 months with an Unreal Engine project, with multiple gigabytes of files being tracked, and it really is painless.

Re:Show HN: Local Node.js app to save everything you browse ... by oefrha on Sunday December 22, 2019 @09:23AM (#21857234)
> You don't get copies until you need them

I know. But you do need them, and files in your work tree don’t magically disappear when you commit them in (presumably). So either you delete the work tree copy immediately after pushing it to LFS server, and duplicate the server copy every time you need to access it, in which case the file is only duplicated then but comes with elevated cost of access, or the latest copy sits around costing double the amount of space at all times.

Re:Show HN: Local Node.js app to save everything you browse ... by fit2rule on Sunday December 22, 2019 @09:49AM (#21857363)
I don't see the issue? Either you want to use Git or not. I have gigabyte-scale files in my 6-month old repo's and haven't ever run into any issues. Of course this may be because my git server is right next to my desk and I'm on gigabit ethernet ..
Re:Show HN: Local Node.js app to save everything you browse ... by Hello71 on Sunday December 22, 2019 @09:28AM (#21857255)
or just use a bare repo?
Re:Show HN: Local Node.js app to save everything you browse ... by hunter2_ on Sunday December 22, 2019 @01:05PM (#21858603)
Aside: are there non-binary and/or non-large blobs? I'm thinking along the lines of ATM machine / PIN number but maybe BLOB no longer implies "binary large" without being explicit.