Re: Replacement for cvs2cl, for generating ChangeLog
- From
- Andy Parkins <andyparkins@gmail.com>
- Date
- Feb 27, 2007, 12:57 UTC
- Message-ID
- <200702271257.37437.andyparkins@gmail.com>
- In-Reply-To
- <877iu3q13r.fsf@latte.josefsson.org>
On Tuesday 2007 February 27 11:41, Simon Josefsson wrote:
> * 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.
If I understand you correctly ("locally" has slightly ambiguous meaning when the repository is local as well), the following would restore a working directory to be identical to the current HEAD.
git checkout -f HEAD
The "-f" means force - i.e. don't worry about discarding local changes :-)
> * 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:
Not that I know of, but git has some lovely log generation tools, so I'm sure it could be easily done with a snippet of perl - or perhaps a change to git's own log generator to support
git-rev-list --pretty=gnucl
would be more appropriate.
Andy
-- Dr Andy Parkins, M Eng (hons), MIET andyparkins@gmail.com