From: Junio C Hamano Date: Tue, 27 Feb 2007 12:23:38 GMT Subject: Re: Replacement for cvs2cl, for generating ChangeLog Message-ID: <7vzm6zg56d.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <877iu3q13r.fsf@latte.josefsson.org> Simon Josefsson writes: > Hi! I'm considering switching to git for my projects (shishi, gsasl, > gnutls, libtasn1, opencdk, ...) and I have some questions: > > * How do I discard all locally modified or added files? 'cvs upd -C' > does some of that, but I've been using a tool 'cvsco' which quickly > restore a CVS checkout into a pristine state. "git reset --hard" (RTFM). > * Is there a tool that produce ChangeLog files in the GNU format, > based on the git logs? Similar to the 'cvs2cl' tool. The output > should look like: No, but that should probably be trivial. I would suggest you postprocess "git log --pretty --numstat --summary" output, which is probably the most parsable.