Projects STRLCPY git-open Commits 4b1e8601
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    README.md
    skipped 129 lines
    130 130  Please provide examples of the URLs you are parsing with each PR.
    131 131   
    132 132  You can run `git-open` in `echo` mode, which doesn't open your browser, but just prints the URL to stdout:
     133 + 
    133 134  ```sh
    134 135  env BROWSER='echo' ./git-open
    135 136  ```
    136 137   
    137  -#### Testing:
     138 +### Testing:
    138 139   
    139 140  You'll need to install [bats](https://github.com/sstephenson/bats#installing-bats-from-source), the Bash automated testing system. It's also available as `brew install bats`
    140 141   
    skipped 36 lines
  • ■ ■ ■ ■ ■ ■
    git-open.1.md
    skipped 25 lines
    26 26  ## EXAMPLES
    27 27   
    28 28  ```sh
    29  -$ git open
     29 +git open
    30 30  ```
    31 31   
    32 32  It opens https://github.com/TRACKED_REMOTE_USER/CURRENT_REPO/
    33 33   
    34 34  ```sh
    35  -$ git open someremote
     35 +git open someremote
    36 36  ```
    37 37   
    38 38  It opens https://github.com/PROVIDED_REMOTE_USER/CURRENT_REPO/
    39 39   
    40 40  ```sh
    41  -$ git open someremote somebranch
     41 +git open someremote somebranch
    42 42  ```
    43 43   
    44 44  It opens https://github.com/PROVIDED_REMOTE_USER/CURRENT_REPO/tree/PROVIDED_BRANCH
    45 45   
    46 46  ```sh
    47  -$ git open --issue
     47 +git open --issue
    48 48  ```
    49 49   
    50 50  If branches use naming convention of `issues/#123`, it opens
    skipped 21 lines
    72 72  You can use `--global` to set across all repos, instead of just the current repo.
    73 73   
    74 74  ```sh
    75  -$ git config [--global] option value
     75 +git config [--global] option value
    76 76  ```
    77 77   
    78 78  ### Configuring which remote to open
    skipped 27 lines
    106 106  ```
    107 107   
    108 108  **Example**
     109 + 
    109 110  - Your git remote is at `ssh://[email protected]:7000/XXX/YYY.git`
    110 111  - Your hosted gitlab is `http://repo.intranet/subpath/XXX/YYY`
    111 112   
    skipped 25 lines
  • ■ ■ ■ ■ ■
    markdownlint.json
    skipped 8 lines
    9 9   "MD013": false,
    10 10   "MD026": false,
    11 11   "MD033": false,
     12 + "MD034": false,
    12 13   "MD036": false,
    13 14   "MD041": false
    14 15  }
    skipped 1 lines
  • ■ ■ ■ ■ ■ ■
    package.json
    skipped 33 lines
    34 34   "scripts": {
    35 35   "lint:editorconfig": "eclint check git-open* readme* .travis.yml",
    36 36   "lint:package": "pjv --recommendations --warnings",
    37  - "lint:readme": "node ./node_modules/markdownlint/lib/markdownlint.js --config markdownlint.json README.md",
    38  - "lint:man": "node ./node_modules/markdownlint/lib/markdownlint.js --config markdownlint.json git-open.1.md",
     37 + "lint:readme": "markdownlint --config markdownlint.json README.md",
     38 + "lint:man": "markdownlint --config markdownlint.json git-open.1.md",
    39 39   "man": "marked-man --version \"git-open $npm_package_version\" --manual \"Git manual\" --section 1 git-open.1.md > git-open.1",
    40 40   "test": "npm run unit && npm run lint:package && npm run lint:man && npm run lint:readme && npm run lint:editorconfig",
    41 41   "unit": "bats test/",
    skipped 2 lines
    44 44   "dependencies": {},
    45 45   "devDependencies": {
    46 46   "eclint": "^2.1.0",
    47  - "markdownlint": "^0.2.0",
     47 + "markdownlint-cli": "^0.7.1",
    48 48   "marked-man": "^0.2.1",
    49 49   "package-json-validator": "^0.6.1"
    50 50   }
    skipped 2 lines
  • ■ ■ ■ ■
    test/git-open.bats
    skipped 39 lines
    40 40  ##
    41 41   
    42 42  @test "url: insteadOf handling" {
    43  - git config --global url.http://example.com/.insteadOf ex:
     43 + git config --local url.http://example.com/.insteadOf ex:
    44 44   git remote set-url origin ex:example.git
    45 45   git checkout -B master
    46 46   run ../git-open
    skipped 554 lines
Please wait...
Page is in error, reload to recover