From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton 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 15:29:57 -0700 Message-ID: <87leqk1day.fsf@melete.silentflame.com> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7984"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: Juri Linkov , 57807@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 16 00:31:14 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 1oYxO3-0001uv-Pt for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Sep 2022 00:31:12 +0200 Original-Received: from localhost ([::1]:41214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYxO2-0005qx-Se for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Sep 2022 18:31:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYxNu-0005qo-9X for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 18:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42531) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYxNu-0004tR-1A for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 18:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oYxNt-0001Pd-Lu for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2022 18:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Sep 2022 22:31: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.16632810065277 (code B ref 57807); Thu, 15 Sep 2022 22:31:01 +0000 Original-Received: (at 57807) by debbugs.gnu.org; 15 Sep 2022 22:30:06 +0000 Original-Received: from localhost ([127.0.0.1]:59461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYxN0-0001N2-66 for submit@debbugs.gnu.org; Thu, 15 Sep 2022 18:30:06 -0400 Original-Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:52895) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oYxMy-0001Lv-Ek for 57807@debbugs.gnu.org; Thu, 15 Sep 2022 18:30:05 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id CA1E63200A96; Thu, 15 Sep 2022 18:29:58 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 15 Sep 2022 18:29:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1663280998; x=1663367398; bh=uJC1+rNXXJ nqjte2rQLM6QKhetojQuqPv9XoxgCdTao=; b=LkkiDO5YaM57bWY6JSvRgEW/Cg j2d94Qrue2SLSnaGYij1gLhn9tz5TAhoODbQABAZKHmSukuxpYQapxvE36vpNTao g/Ug06SpaSdq4QXuQ7ssUbl+DUitgotrJWZ3mn1eVRhe0FK3lu5vHhbBWxvOVUr8 abU3UZpiSNfDRvGZU8vTEj6Y5TU0n20z0tg2/5p/K5BlFqQx90VuAes9UvC53uc5 /HPmDqRaH23zJogJEgTSoQyuaMepFszsvVEDt7QH7LOplrFG3bUIoyIlnqpwqCOK rynJNKL0LeEcKibtae8vfII9OvYjsZHYCHQIlCLkhefCnrORNenNnXPhf4TQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1663280998; x=1663367398; bh=uJC1+rNXXJnqjte2rQLM6QKhetoj QuqPv9XoxgCdTao=; b=W7WRCt9EUiwZ9TUzp7sS1rWH7CnHUbVWXXgZU+Wtb0/l k0ic9BPR9Jc0yPVvCZPhlbqYIcFbHQBaUeR1mJ8b9SqxUVawJWDmvQ8XciGXofo7 hhkrBjlQBPvv6r0NnKxZANHgpdylP0CpaWGJi+o36125ysrZiAKqcIPnE3O5aCLN C6Ouv9CGTxUFNOFPN7mbDpufPLVMMf5JjkaX6LVB918nhW9LQBrowgymPnH+4Iac 86CrsRf/lX5MUBxLdW9hnNzm3Qjm4YpAWGtw+bBGzg091Dt1wInjPsKP0bZdx1+9 3THI8BKJmRltFhm9IxzBHQcFh29ZSKJoxqpMIEjmfg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeduledguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhffkfgfgggtsehttddttddtredtnecuhfhrohhmpefuvggrnhcu hghhihhtthhonhcuoehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvgeqne cuggftrfgrthhtvghrnhepffeutedtfedvtdetvefgueefjefggedugfefuddtgeefteek heduvdefjeejieefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgv X-ME-Proxy: Feedback-ID: i23c04076:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 15 Sep 2022 18:29:58 -0400 (EDT) Original-Received: by melete.silentflame.com (Postfix, from userid 1000) id 314CF7F16C1; Thu, 15 Sep 2022 15:29:57 -0700 (MST) In-Reply-To: <8635cs8s59.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 15 Sep 2022 20:27:30 +0300") 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:242659 Archived-At: Hello, On Thu 15 Sep 2022 at 08:27PM +03, Juri Linkov wrote: >>>>> 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? -- Sean Whitton