Documentation
¶
Overview ¶
Package gitdiff reads a commit range from a local repository with the git binary and analyses it with the review package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
Options select the commits to compare. An empty Base means the default branch, an empty Head means HEAD. MergeBase compares Head against the merge base of the two, as a pull request does.
func ParseRange ¶
ParseRange turns command-line revisions into Options using git's range syntax: "a..b" compares a and b directly, while "a...b", "a b" and a lone "a" compare against the merge base.
Click to show internal directories.
Click to hide internal directories.