4 ms·
Maybe for just a small code segment, a comment is a lot more convenient than going all the way through git for it? What if there's some functionality in a meth
by jimmaswell 12y ago
Maybe for just a small code segment, a comment is a lot more convenient than going all the way through git for it?
What if there's some functionality in a method you're not sure you want to take out or change or not, but you've also added to the rest of the file, so you commit it with a small code segment commented out and a short explanation? That's not hurting anything and it'd be a PITA and overkill to put it in a different branch or make a separate commit only including it or something.
- npsimons 12y agoMaybe for just a small code segment, a comment is a lot more convenient than going all the way through git for it? I don't get this; stashing changes, branching, even just copying and pasting something from history in git, are all very fast for me (using git in emacs with egg). Granted, I can comment-dwim with M-;, and I've conditioned myself against "just" commenting out code, but still.