On 02/28/2016 07:34 AM, [email protected] wrote:
From: Trevor Saunders <[email protected]>
when run in repos other than gcc mklog fails to find ChangeLog files
because it looks for $0/../$dir/ChangeLog, but of course if the diff is
for a project other than gcc that might not exist. It should be fine to
also look for $cwd/$dir/ChangeLog, and use that if we find it. This
means that for example in binutils-gdb.git you can do git commit,
and then in your editor read git diff HEAD~ | mklog - to generate a
template ChangeLog for that commit.
I've tested mklog still generates the write ChangeLog entries for gcc and
binutils repos, ok?
Trev
contrib/ChangeLog:
2016-02-28 Trevor Saunders <[email protected]>
* mklog: Look for the ChangeLog file in $cwd.
OK.
jeff