diff options
author | Trevor Saunders <tbsaunde+gcc@tbsaunde.org> | 2016-03-06 17:36:19 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2016-03-06 17:36:19 +0000 |
commit | 1f347c50efc8c095999022d94ee176b4eb9b4aca (patch) | |
tree | 5804bde429ee3a5939876792975aac4f00909a7d /contrib/ChangeLog | |
parent | d96e840784d5c589120b9df69536097e5d15ec39 (diff) | |
download | gcc-1f347c50efc8c095999022d94ee176b4eb9b4aca.zip gcc-1f347c50efc8c095999022d94ee176b4eb9b4aca.tar.gz gcc-1f347c50efc8c095999022d94ee176b4eb9b4aca.tar.bz2 |
teach mklog to look in the current directory for ChangeLog files
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.
contrib/ChangeLog:
2016-03-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* mklog: Look for the ChangeLog file in $cwd.
From-SVN: r234014
Diffstat (limited to 'contrib/ChangeLog')
-rw-r--r-- | contrib/ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index d789cd8..e40db53 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,7 @@ +2016-03-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> + + * mklog: Look for the ChangeLog file in $cwd. + 2016-02-26 Joel Sherrill <joel@rtems.org> * config-list.mk: Add aarch64-rtems and x86_64-rtems |