3 ms·
Why push a new document every day instead of simply updating the document? This is git, it's easy to track changes...
by ozh 12y ago
Why push a new document every day instead of simply updating the document? This is git, it's easy to track changes...
- coherentpony 12y agoBecause perhaps someone wants to look at trends over time. Doing it this way means that you don't have to scour through the git history to get your data. Also, scouring the git history, as you suggest, assumes that each commit corresponds to exactly one daily update. What if there are commits that fix typos or other errors? How do you programmatically skip over those? Pushing a new document every day is the correct choice here.
- Grue3 12y agoNo, the correct choice would be using one file and tags for each date. To fix a typo you just go to appropriate tag and make a commit.
- thu 12y ago"correct" w.r.t. what ? A checkout (or a tarball as offered by GitHub) of the repo is all those files, which is probably what most people want.
- coherentpony 12y agoI didn't think about tags. That's a fair point.
- deleted 12y ago[deleted]