all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to get the list of commits which is included in master but not in emacs-26?
@ 2018-03-21  0:49 zhang cc
  2018-03-21  4:53 ` Radon Rosborough
  0 siblings, 1 reply; 3+ messages in thread
From: zhang cc @ 2018-03-21  0:49 UTC (permalink / raw)
  To: emacs-devel@gnu.org

[-- Attachment #1: Type: text/plain, Size: 62 bytes --]

Is there a git command or a tool can output such a list?



[-- Attachment #2: Type: text/html, Size: 523 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to get the list of commits which is included in master but not in emacs-26?
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Radon Rosborough @ 2018-03-21  4:53 UTC (permalink / raw)
  To: zhang cc; +Cc: emacs-devel@gnu.org

> 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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to get the list of commits which is included in master but not in emacs-26?
  2018-03-21  4:53 ` Radon Rosborough
@ 2018-03-21  5:26   ` zhang cc
  0 siblings, 0 replies; 3+ messages in thread
From: zhang cc @ 2018-03-21  5:26 UTC (permalink / raw)
  To: Radon Rosborough; +Cc: emacs-devel@gnu.org

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-21  5:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.