From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Generating the ChangeLog files from the commit messages Date: Thu, 20 Nov 2014 11:04:40 +0700 Message-ID: References: <21606.10799.112099.788101@a1i15.kph.uni-mainz.de> <1753218.Ot8JCqssfN@descartes> <546AABCF.8030705@cs.ucla.edu> <9xioico2nm.fsf@fencepost.gnu.org> <83k32s9zm5.fsf@gnu.org> <546BC2C6.50909@cs.ucla.edu> <546D3287.7070802@cs.ucla.edu> <546D5CBA.2010200@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1416456302 18387 80.91.229.3 (20 Nov 2014 04:05:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Nov 2014 04:05:02 +0000 (UTC) Cc: Emacs developers To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 20 05:04:56 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XrIzH-0001GL-Np for ged-emacs-devel@m.gmane.org; Thu, 20 Nov 2014 05:04:55 +0100 Original-Received: from localhost ([::1]:33444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrIzH-00005k-5x for ged-emacs-devel@m.gmane.org; Wed, 19 Nov 2014 23:04:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrIz4-00005d-Hb for emacs-devel@gnu.org; Wed, 19 Nov 2014 23:04:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrIz3-0001w6-Jv for emacs-devel@gnu.org; Wed, 19 Nov 2014 23:04:42 -0500 Original-Received: from mail-ig0-x236.google.com ([2607:f8b0:4001:c05::236]:60489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrIz3-0001vw-Bu for emacs-devel@gnu.org; Wed, 19 Nov 2014 23:04:41 -0500 Original-Received: by mail-ig0-f182.google.com with SMTP id hn15so2179825igb.9 for ; Wed, 19 Nov 2014 20:04:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=omfHDP4Sv54uefufP09eVw9bA1N6U15H6Sq+Ys8FPi0=; b=LNkfMa4q5XxHTWUsbZtSpm2EwlnQSZERMKPYzmZ+I24Co73r2nMAQOpGYbIhRQXe/l LU05649D0Mcsz6M4On8VPQUNpeeC/aIsbM0rzFL+qTuJCP/a20lD+eMlGJTY2jOWU+Xl DI/dgb04M4+Aoil9o8T6nGgZwZ/MHiiVqeNKeh0h0VEhGbaAoSg9yBHgYdo0G7Rm6iFR jRbBKUnyYsfE4X1BAvhMUww7zG0xRds8roV2urSP0VAGE5TWiK4hvc6xqolo12UWx626 1b2F5i4HdJ+rHqSPSejXTr3xUlKkA3YP02XS3pi1kaYp7QjAH3rmIFyygulKnsVUaZFz CkTw== X-Received: by 10.107.166.141 with SMTP id p135mr49033154ioe.16.1416456280716; Wed, 19 Nov 2014 20:04:40 -0800 (PST) Original-Received: by 10.107.48.3 with HTTP; Wed, 19 Nov 2014 20:04:40 -0800 (PST) In-Reply-To: <546D5CBA.2010200@cs.ucla.edu> X-Google-Sender-Auth: fCDevu_KYmloT5oKtEjqIaHNBWE X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c05::236 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:177849 Archived-At: On Thu, Nov 20, 2014 at 9:15 AM, Paul Eggert wrote: > Yuri Khan wrote: >> >> =E2=80=A6/emacs $ gitlog-to-changelog --since=3D2014-11-18 -- foo -- lis= p >> >> should generate a changelog from the commits reachable from the branch >> head =E2=80=9Cfoo=E2=80=9D authored on or after 2014-11-18 and touching = any files in >> the subdirectory =E2=80=9Clisp=E2=80=9D. > > Thanks, but that would generate duplicates in the ChangeLog files. For > example, if a patch updates both lisp/Makefile.in and src/Makefile.in, it > would copy the patch's change log entry to both lisp/ChangeLog and > src/ChangeLog. True. What is the existing practice for such cases? Does a changelog entry go into the ChangeLog file of the deepest common ancestor of all changes or what? > Plus, it's not clear how to generate the "leftover" > ChangeLog at the top level, which contains everything not in the subsidia= ry > ChangeLogs. I do not have an elegant solution to this problem. A kludgy solution involves taking the list of top-level files, filtering out directories which have separate ChangeLogs, and passing the rest to git-log. =E2=80=A6/emacs$ git log -- $(ls | grep -vE 'leim|doc|lwlib|nt|msdos|lisp|admin|src|lib-src|oldXmenu|nextstep|test')