From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: git history tracking across renames (and emacs support) Date: Fri, 13 Jul 2018 10:18:44 +0200 Message-ID: <87fu0nmtuj.fsf@gmail.com> References: <838t6jgl1k.fsf@gnu.org> <601m6cc6.fsf@lifelogs.com> <83o9fefnv9.fsf@gnu.org> <83in5lg4ol.fsf@gnu.org> <83efg9fxnj.fsf@gnu.org> <877em078mz.fsf@tcd.ie> <87muuwo0wh.fsf@gmail.com> <87o9fcmdfb.fsf@gmail.com> <87k1q0mc5v.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1531469817 9861 195.159.176.226 (13 Jul 2018 08:16:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Jul 2018 08:16:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 13 10:16:53 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdtG1-0002UU-7E for ged-emacs-devel@m.gmane.org; Fri, 13 Jul 2018 10:16:53 +0200 Original-Received: from localhost ([::1]:35811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdtI7-0007gH-Sr for ged-emacs-devel@m.gmane.org; Fri, 13 Jul 2018 04:19:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdtI1-0007g0-Ji for emacs-devel@gnu.org; Fri, 13 Jul 2018 04:18:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdtHy-0007fr-GM for emacs-devel@gnu.org; Fri, 13 Jul 2018 04:18:57 -0400 Original-Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:44833) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fdtHy-0007dU-90 for emacs-devel@gnu.org; Fri, 13 Jul 2018 04:18:54 -0400 Original-Received: by mail-wr1-x435.google.com with SMTP id r16-v6so24201365wrt.11 for ; Fri, 13 Jul 2018 01:18:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=EV/Ad2qkaMHXONFKPhf/7yZaOqC4l88MGk7KfPnW1ng=; b=qVS/X+Df56Z5P+1b+7RXDEK8bmeBnHs1Zkb1jUGPEDV99pESpqIT96f49S761b7VwO 8tiwGe2ygywEiVfarYfdppFv7km5BnjXh4QEWtF9Vk2mNTN765PPjO6GG1eWrClXcBWW hy9Zk10Cb3a6fqcL0FmcjY4U4ulLlDN9zDb9Dly2heystq8htvnT8C5+RhrxEpfiRH9W Oc5Ocnsa+a3TIhtcYtExKIRgpA1GFfjJf1eG0NOzqz3rWAg1OsPu1hummSeIzENvXhHX ErJ9t93AK9+sjCu1wdLFfvDQ0V3JaPIUs1bUPDiv7SmnYnpPnYlqmRG8++TcPPTXkvDF L5Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=EV/Ad2qkaMHXONFKPhf/7yZaOqC4l88MGk7KfPnW1ng=; b=ktEaY/6wl317zwqjehmUJ+ypy5UrzbGzer4vPaNZOkg8YIpdQeyiD3HtouPJ0jhNwx gVb1IYGfiz+KKt3J/bWVc/cEVJ3EPO0LHHMN4ndMhtoadPSRXJdJKFyOLn6ySDIb+2K5 H+zudXbhpkbmo2VgcnWCjlIJE/Jw1KX4Dyx8wBlLPztBaZoL3thgtdzZoVsn6ZvQyumU 7IUsXYsFdDtTc0ECb5wYMTUMP0opnfIP9jaRZBp05eSru2VI/6TuOQUbLY4qXhbdEG+d Z3kIgIQc62hY1QmKZkLXu5kNN68Xm8WdjCI24NvW3AgyjCLsTzBQSSwCk0zlaQvZ+Oi7 8hhQ== X-Gm-Message-State: AOUpUlE8Rh0hC8Wmjg2vqGKcHaBPqT6tBR4gDUtfoe1+/Cs/wS/6Fa+/ zwQiC10LQuxElbTPAbMIlGgAjlOA X-Google-Smtp-Source: AAOMgpeKsf/HIqmO4iNWa37wOIajxyZ+2OR44dooYhKUROP8G8fi/guf9As2gxCm7k7gQ9A9JD7YJA== X-Received: by 2002:adf:91e5:: with SMTP id 92-v6mr3591849wri.124.1531469931412; Fri, 13 Jul 2018 01:18:51 -0700 (PDT) Original-Received: from rpluim ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id y14-v6sm3812798wrq.45.2018.07.13.01.18.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Jul 2018 01:18:50 -0700 (PDT) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Stefan Monnier's message of "Thu, 12 Jul 2018 23:46:19 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::435 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:227322 Archived-At: Stefan Monnier writes: >>> Generate the diff and then use `C-x 4 A` from the diff. >>> It should be fairly easy to combine the two into a single command. >> ...but this doesn=CA=BCt. > > You meant `C-x 4 A` doesn't work (if so, why not), or combining the two > into a single command doesn't (if so, it probably depends on how you > did it)? C-x 4 A doesn=CA=BCt work from a magit diff buffer that contains changes for multiple files, it creates a ChangeLog entry for whichever file entry point happens to be in. So I would need to do M-! git diff M-x diff-mode C-x 4 A. That could be made into a single command, but if C-x 4 A understood magit diffs, then you'd get complete control over the content of the diff (staged, unstaged, commit, etc). Regards Robert