A tool to list print the commits on one git branch that are not on another using loose comparison
$ branch-diff [--simple] [--group] [--patch-only] base-branch comparison-branch
A commit is considered to be in the comparison-branch but not in the base-branch if:
- the commit sha is identical, or
- the commit summary is identical and the commit description is identical and a
PR-URLexists in the metadata and is identical (in the description but split out by commit-stream)
The output is the same as changelog-maker and you can use
--simple to simplify it for console output instead of Markdown.
The commit list is very close to running:
$ git log master..next
But the comparison isn't quite as strict, generally leading to a shorter list of commits.
--version: Only prints branch-diff's package.json version.
-g: Group commits by prefix, this uses the part of the commit summary that is usually used in Node.js core to indicate subsystem for example. Groups are made up of numbers, letters,
-, followed by a
--exclude-label: Exclude any commits from the list that come from a GitHub pull request with the given label. Multiple
--exclude-labeloptions may be provided, they will also be split by
--require-label: Only include commits in the list that come from a GitHub pull request with the given label. Multiple
--require-labeloptions may be provided, they will also be split by
--patch-only: An alias for
--format: Dictates what formatting the output will have. Possible options are:
sha. The default is to print markdown-formatted output.
simple: Don't print full markdown output, good for console printing without the additional fluff.
sha: Print only the 10-character truncated commit shasums. Good for piping though additional tooling, such as
xargs git cherry-pickfor applying commits.
-s: An alias for
--filter-release: Exclude Node-style release commits from the list. e.g.
Working on v1.0.0or
2015-10-21 Version 2.0.0.
--reverse: Reverse the results, this is especially useful when piping output to
branch-diff is Copyright (c) 2015 Rod Vagg @rvagg and licenced under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.