• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Export Word
    • Attachments
    • Page Information

    Loading...
  1. Dashboard
  2. Skara
  3. Skara
  4. CLI Tools
  5. git-pr
  6. show

show

  • Created by Erik Helin, last modified on Sep 04, 2020

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
  • No labels

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.21
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 180, "requestCorrelationId": "f2783e12306e1292"}