Description
git-pr show shows a unified diff of the changes introduced in a pull request.
Usage
$ git pr show -h usage: git-pr [options] [<ID>] -u, --username NAME Username on host -r, --remote NAME Name of remote, defaults to 'origin' --no-token Do not use a personal access token (PAT) --verbose Turn on verbose output --debug Turn on debugging output --version Print the version of this tool -h, --help Show this help text
Examples
Show a unified diff of the changes in a pull request with id 786:
$ git pr show 786 diff --git a/cli/src/main/java/org/openjdk/skara/cli/GitTrees.java b/cli/src/main/java/org/openjdk/skara/cli/GitTrees.java index 5e361623..eb695f4a 100644 --- a/cli/src/main/java/org/openjdk/skara/cli/GitTrees.java +++ b/cli/src/main/java/org/openjdk/skara/cli/GitTrees.java @@ -123,7 +123,9 @@ public static void main(String[] args) throws IOException, InterruptedException } if (args.length == 1 && (args[0].equals("-h") || args[0].equals("--help"))) { - System.out.println("usage: git-trees [options] <COMMAND>"); + System.out.println("usage: git-trees [options] <COMMAND> [<ARGS>]"); + System.out.println("\t<COMMAND>\tA git/hg command to run once for each repo, or"); + System.out.println("\ttreconfigure\tto pick up changes in the tree hierarchy"); System.out.println("\t-m, --mercurial\tDeprecated: force use of mercurial"); System.out.println("\t-h, --help \tShow this help text"); System.out.println("\t --version \tPrint the version of this tool"); @@ -163,6 +165,7 @@ public static void main(String[] args) throws IOException, InterruptedException for (var path : trees) { var subroot = root.resolve(path); if (isRepository(subroot, isMercurial)) { + System.out.println(); System.out.println("[" + root.resolve(path).toString() + "]"); pb.directory(subroot.toFile()); ret += pb.start().waitFor();
Configuration
None.
Source
See GitPrShow.java.
Overview
Content Tools
ThemeBuilder