From: Radon Rosborough <radon.neon@gmail.com>
To: zhang cc <ccsmile2008@outlook.com>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: How to get the list of commits which is included in master but not in emacs-26?
Date: Tue, 20 Mar 2018 21:53:28 -0700 [thread overview]
Message-ID: <CADB4rJFN-w=z=TDkj95Exy-P7F9k3cYk4L5wUMjEsJ-__5J-jw@mail.gmail.com> (raw)
In-Reply-To: <SG2PR0601MB1405A2E0777182C4E40F98E2A8AA0@SG2PR0601MB1405.apcprd06.prod.outlook.com>
> How to get the list of commits which is included in master but not
> in emacs-26? Is there a git command or a tool can output such a
> list?
You want a list of commits, so refer to the manual page for
git-log(1). It says
The command takes options applicable to the git rev-list command to
control what is shown and how
so checking the "description" section of git-rev-list(1), we find
List commits that are reachable by following the parent links from
the given commit(s), but exclude commits that are reachable from the
one(s) given with a ^ in front of them.
and further,
A special notation "<commit1>..<commit2>" can be used as a
short-hand for "^'<commit1>' <commit2>".
The answer to your question is therefore
$ git log emacs-26..master
next prev parent reply other threads:[~2018-03-21 4:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-21 0:49 How to get the list of commits which is included in master but not in emacs-26? zhang cc
2018-03-21 4:53 ` Radon Rosborough [this message]
2018-03-21 5:26 ` zhang cc
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='CADB4rJFN-w=z=TDkj95Exy-P7F9k3cYk4L5wUMjEsJ-__5J-jw@mail.gmail.com' \
--to=radon.neon@gmail.com \
--cc=ccsmile2008@outlook.com \
--cc=emacs-devel@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.