Beej Jorgensen <be…@beej.us> writes:
> In article <87bj…@safunu.org>, Anton Antimo <ant…@safunu.org> wrote:
>>Working alone it matters little whether I commit often or not. It >>turns out I don't like to commit just because I wrote some new >>function.
> > With respect, it sounds like it *does* matter whether you commit often > or not, at least to you. :) > > I mostly work solo, too. I have three computers I frequently work on, > and I use Git to keep them in sync.
Why do you use so many computers?
> (Disclaimer: this is for a bunch of markdown documentation, though, > not code.)
I was hoping you'd say literate programming Knuth-style. You are someone who could really enjoy literate programming Knuth-style. As Tony Hoare once said---Knuth now asks us not only to be a good programmer, but a good writer. As it turns out, the latter is even harder for programmers, sadly. It seems engineers really don't care for producing books like Knuth does when it comes to their programs. I confess---even Knuth's own CWEB output isn't too cool either. He doesn't even seem to put a nice page with an introduction to the software itself (on the few sample small programs I've seen from him). I use NOWEB by Norman Ramsey. I write on the GNU EMACS using polymode. This set-up is really great. (I produce LaTeX output.)
> I commit early and often, and don't care how clean the graph > is. pull.rebase is true everywhere, so the history is still > linear. But it's full of typo fixes and things like that. > > It just doesn't matter--I'm the only one working on it. It's pretty much > the with my code projects. If I haven't pushed, I'll flatten out stupid > bug fixes, but if I have pushed, oh well! Releases get tagged.
What I've been doing in practice is to rewrite the entire history so many times. I'll keep doing that, but I'll commit a lot less often from now on.