From: zhang cc <ccsmile2008@outlook.com>
To: Radon Rosborough <radon.neon@gmail.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: Wed, 21 Mar 2018 05:26:13 +0000 [thread overview]
Message-ID: <SG2PR0601MB14056BBA0621C0805D625DE0A8AA0@SG2PR0601MB1405.apcprd06.prod.outlook.com> (raw)
In-Reply-To: <CADB4rJFN-w=z=TDkj95Exy-P7F9k3cYk4L5wUMjEsJ-__5J-jw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 879 bytes --]
Very usefull. Thank you.
On 21 Mar 2018, 12:54 PM +0800, Radon Rosborough <radon.neon@gmail.com>, wrote:
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
[-- Attachment #2: Type: text/html, Size: 1723 bytes --]
prev parent reply other threads:[~2018-03-21 5:26 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
2018-03-21 5:26 ` zhang cc [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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=SG2PR0601MB14056BBA0621C0805D625DE0A8AA0@SG2PR0601MB1405.apcprd06.prod.outlook.com \
--to=ccsmile2008@outlook.com \
--cc=emacs-devel@gnu.org \
--cc=radon.neon@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).