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: Fri, 16 Sep 2022 09:59:09 +0300 Organization: LINKOV.NET Message-ID: <86o7vfpzya.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> <8635cs8s59.fsf@mail.linkov.net> <87leqk1day.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="2517"; 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 Fri Sep 16 09:11:17 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 1oZ5VN-0000Q9-Qn for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Sep 2022 09:11:17 +0200 Original-Received: from localhost ([::1]:55476 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZ5VM-000083-Ft for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Sep 2022 03:11:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZ5V8-00007c-BZ for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 03:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42287) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZ5V8-0000hh-3l for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 03:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZ5V7-0002rD-Te for bug-gnu-emacs@gnu.org; Fri, 16 Sep 2022 03:11: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: Fri, 16 Sep 2022 07:11: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.166331225310957 (code B ref 57807); Fri, 16 Sep 2022 07:11:01 +0000 Original-Received: (at 57807) by debbugs.gnu.org; 16 Sep 2022 07:10:53 +0000 Original-Received: from localhost ([127.0.0.1]:41362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZ5Uz-0002qf-B0 for submit@debbugs.gnu.org; Fri, 16 Sep 2022 03:10:53 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:37541) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZ5Uw-0002qL-Ht for 57807@debbugs.gnu.org; Fri, 16 Sep 2022 03:10:51 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 53AA3C0015; Fri, 16 Sep 2022 07:10:41 +0000 (UTC) In-Reply-To: <87leqk1day.fsf@melete.silentflame.com> (Sean Whitton's message of "Thu, 15 Sep 2022 15:29:57 -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:242699 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. > > That would be enough for me. vc-push already works that way. Shall I > look into preparing a patch? Yes, please try to prepare a patch, preferably without changing the established backend API, maybe by using a global variable that later could be reused to confirm and edit other commands.