this post was submitted on 22 May 2024
997 points (97.9% liked)

Science Memes

11086 readers
2628 users here now

Welcome to c/science_memes @ Mander.xyz!

A place for majestic STEMLORD peacocking, as well as memes about the realities of working in a lab.



Rules

  1. Don't throw mud. Behave like an intellectual and remember the human.
  2. Keep it rooted (on topic).
  3. No spam.
  4. Infographics welcome, get schooled.

This is a science community. We use the Dawkins definition of meme.



Research Committee

Other Mander Communities

Science and Research

Biology and Life Sciences

Physical Sciences

Humanities and Social Sciences

Practical and Applied Sciences

Memes

Miscellaneous

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] uis@lemm.ee 1 points 5 months ago (1 children)

With a bunch of separate files, you can at least open two of them quickly and do a manual scan, but with git you can only ever have one version checked out at the same time, so now you’ll be checking out an older version, making a temporary copy of that, and then checking out the version you want to compare it to and STILL end up doing just that.

What? I don't understand what are you trying to say. Are you trying to do manual scan of xml inside? It's useless, internal format is not intended to be human-readable. But you can use regular git diff anyway.

Or if you want to compare rendered documents, then you probably need to make git diff driver. Or checkout multiple worktrees and use libreoffice's comparasion.

[–] MacNCheezus@lemmy.today 1 points 5 months ago (1 children)

I meant the last one of those. If you have a directory of lose files, you can just open any of them and compare them directly, but if they're all in git, you'll either have to make a copy of your current version before checking out the other one (because it would be overwritten otherwise), or like you said, use multiple worktrees, which is a rather advanced feature (that I honestly didn't even know existed until now).

Either way it's a bunch of extra work and it's only necessary because you chose the wrong tool for the job.

[–] uis@lemm.ee 1 points 5 months ago* (last edited 5 months ago) (1 children)

Or call libreoffice as diff driver.

[–] MacNCheezus@lemmy.today 2 points 5 months ago (1 children)
[–] uis@lemm.ee 1 points 5 months ago

I imagine script that outputs pandiff into pdf and opens okular. Yep.