all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sergey Organov <sorganov@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Git/Magit: To which branch was a commit was originally committed?
Date: Tue, 02 Nov 2021 17:12:23 +0300	[thread overview]
Message-ID: <slrh0c$uos$1@ciao.gmane.io> (raw)
In-Reply-To: 87v91b3c10.fsf@web.de

Michael Heerdegen <michael_heerdegen@web.de> writes:

> Sergey Organov <sorganov@gmail.com> writes:
>
>> I think that closest thing to the original request would be a way to
>> list branches from which the commit in question is reachable if we
>> follow first parent only. This way branches to which the commit "was
>> merged" won't appear in the list. I dunno how to achieve it either in
>> Git or Magit without additional scripting though.
>
> After some quick experimentation I think it could be that moving point
> with `magit-log-move-to-parent' doesn't leave the current branch.  Seems
> also that the (checked out) master branch is also always the leftmost
> line in the graphical view.  Can anyone confirm?

Even though rather close, the leftmost column is not, strictly speaking,
the checked-out branch, it's rather the chain of commits that is the
result of following the first parent when traversing the history DAG
back starting from the current branch.

Essentially, this does give you the history of the master branch, taking
into account the workflow being used to manage Emacs Git repository.

As `magit-log-move-to-parent' without arguments seem to follow the first
parent, it will indeed either move over that leftmost column, or
eventually gravitate to it if you start at some side branch.

-- Sergey Organov




      reply	other threads:[~2021-11-02 14:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-01 14:38 Git/Magit: To which branch was a commit was originally committed? Michael Heerdegen
2021-11-01 16:01 ` Daniel Fleischer
2021-11-01 16:09 ` Daniel Fleischer
2021-11-01 17:18   ` Sergey Organov
2021-11-01 19:34     ` Michael Heerdegen
2021-11-02 14:12       ` Sergey Organov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='slrh0c$uos$1@ciao.gmane.io' \
    --to=sorganov@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.