From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#57807: 29.0.50; Make vc-print-branch-log able to log multiple branches Date: Thu, 15 Sep 2022 20:27:30 +0300 Organization: LINKOV.NET Message-ID: <8635cs8s59.fsf@mail.linkov.net> References: <87czbxub4b.fsf@melete.silentflame.com> <86v8ppn5b2.fsf@mail.linkov.net> <87h719shi6.fsf@melete.silentflame.com> <861qsdktqo.fsf@mail.linkov.net> <87fsgs396r.fsf@melete.silentflame.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16390"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 57807@debbugs.gnu.org To: Sean Whitton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 15 19:38:44 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oYsp1-00044o-Dr for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 19:38:43 +0200 Original-Received: from localhost ([::1]:50890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYsoz-0007MT-R5 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 13:38:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYsoO-0007LH-1p for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 13:38:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42190) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYsoL-0007Ch-Px for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 13:38:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYsoL-0000Dy-LJ for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 13:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Sep 2022 17:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57807 X-GNU-PR-Package: emacs Original-Received: via spool by 57807-submit@debbugs.gnu.org id=B57807.1663263480855 (code B ref 57807); Thu, 15 Sep 2022 17:38:01 +0000 Original-Received: (at 57807) by debbugs.gnu.org; 15 Sep 2022 17:38:00 +0000 Original-Received: from localhost ([127.0.0.1]:59122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYsoK-0000Di-11 for submit@debbugs.gnu.org; Thu, 15 Sep 2022 13:38:00 -0400 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:61275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYsoH-0000DT-P4 for 57807@debbugs.gnu.org; Thu, 15 Sep 2022 13:37:59 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id CC14240006; Thu, 15 Sep 2022 17:37:49 +0000 (UTC) In-Reply-To: <87fsgs396r.fsf@melete.silentflame.com> (Sean Whitton's message of "Thu, 15 Sep 2022 09:15:56 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:242623 Archived-At: >>>> Is this equivalent to `M-& git log origin/scratch/posix-spawn 4b2ca6bfc0`, >>>> then enabling vc-git-log-view-mode in the output buffer? >>> >>> It's not, because vc-git-log-view-mode requires you pass four or five >>> options to git-log to get output it can properly display. That >>> knowledge is locked up in vc-git.el right now. >> >> This part is clear, but I also wanted to know what git command >> corresponds to this feature. Is it just `git log` with two >> branch names on the command line? What additional options >> are required? Maybe `--graph --oneline`? Also I see that >> git documentation mentions `--branches[=]`. > > It's something along these lines: > > git log -100 --graph --decorate --date=short \ > --pretty="tformat:%d%h..: %an %ad %s" --abbrev-commit \ > BRANCH1 BRANCH2 This is what I proposed a long ago, maybe it makes sense here. After invoking a vc command with a prefix argument it could pop up the minibuffer with the command line that you can edit to add or delete more arguments for the git command. So e.g. after 'C-u C-x v b l BRANCH1 RET' it will insert in the minibuffer the default command `git log ... BRANCH1`, where you can add BRANCH2 and modify any other option. Then it runs this command and displays the output in the vc-git-log-view-mode buffer.