|
|
@ -4,11 +4,11 @@
|
|
|
|
[![crates.io](https://img.shields.io/crates/v/git-view)](https://crates.io/crates/git-view)
|
|
|
|
[![crates.io](https://img.shields.io/crates/v/git-view)](https://crates.io/crates/git-view)
|
|
|
|
[![downloads](https://img.shields.io/crates/d/git-view)](https://crates.io/crates/git-view)
|
|
|
|
[![downloads](https://img.shields.io/crates/d/git-view)](https://crates.io/crates/git-view)
|
|
|
|
|
|
|
|
|
|
|
|
> A git sub-command to view your git repository in the web browser!
|
|
|
|
> A git sub-command to view your git repository on GitHub!
|
|
|
|
|
|
|
|
|
|
|
|
## About
|
|
|
|
## About
|
|
|
|
|
|
|
|
|
|
|
|
Are you _**also**_ frustrated from moving your hands away from the keyboard to view your git repository in the browser?
|
|
|
|
Are you _**also**_ frustrated from moving your hands away from the keyboard to view your git repository on GitHub?
|
|
|
|
|
|
|
|
|
|
|
|
> Me too!!!
|
|
|
|
> Me too!!!
|
|
|
|
|
|
|
|
|
|
|
@ -20,9 +20,8 @@ Are you _**also**_ frustrated from moving your hands away from the keyboard to v
|
|
|
|
## Features
|
|
|
|
## Features
|
|
|
|
|
|
|
|
|
|
|
|
- [x] View Branches, Commits & Issues
|
|
|
|
- [x] View Branches, Commits & Issues
|
|
|
|
- [x] Custom Suffix
|
|
|
|
|
|
|
|
- [x] Custom Remote
|
|
|
|
- [x] Custom Remote
|
|
|
|
- [x] View Current Directory
|
|
|
|
- [x] Custom Directory
|
|
|
|
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
|
|
|
@ -80,10 +79,6 @@ $ git view --path CONTRIBUTING.md
|
|
|
|
$ git view --path CONTRIBUTING.md --branch testing
|
|
|
|
$ git view --path CONTRIBUTING.md --branch testing
|
|
|
|
# https://github.com/TRACKED_REMOTE_USER/REPO/tree/PROVIDED_BRANCH/CONTRIBUTING.md
|
|
|
|
# https://github.com/TRACKED_REMOTE_USER/REPO/tree/PROVIDED_BRANCH/CONTRIBUTING.md
|
|
|
|
|
|
|
|
|
|
|
|
$ git view --suffix releases
|
|
|
|
|
|
|
|
# Given branch 'TICKET-123' or some other variation
|
|
|
|
|
|
|
|
# https://github.com/TRACKED_REMOTE_USER/REPO/releases
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$ git view --print
|
|
|
|
$ git view --print
|
|
|
|
# prints https://github.com/TRACKED_REMOTE_USER/REPO/tree/CURRENT_BRANCH
|
|
|
|
# prints https://github.com/TRACKED_REMOTE_USER/REPO/tree/CURRENT_BRANCH
|
|
|
|
```
|
|
|
|
```
|
|
|
@ -93,26 +88,25 @@ $ git view --print
|
|
|
|
```shell
|
|
|
|
```shell
|
|
|
|
git-view 1.0.0
|
|
|
|
git-view 1.0.0
|
|
|
|
Goudham Suresh <sgoudham@gmail.com>
|
|
|
|
Goudham Suresh <sgoudham@gmail.com>
|
|
|
|
A git sub-command to view your git repository in the web browser
|
|
|
|
A git sub-command to view your git repository on GitHub
|
|
|
|
|
|
|
|
|
|
|
|
USAGE:
|
|
|
|
USAGE:
|
|
|
|
git-view [OPTIONS]
|
|
|
|
git-view [OPTIONS]
|
|
|
|
|
|
|
|
|
|
|
|
OPTIONS:
|
|
|
|
OPTIONS:
|
|
|
|
-r, --remote <name> The remote to view git repository on
|
|
|
|
-r, --remote <name> The remote to view on GitHub
|
|
|
|
[default: default remote]
|
|
|
|
[default: default remote]
|
|
|
|
-b, --branch <name> The branch to view git repository on
|
|
|
|
-b, --branch <name> The branch to view on GitHub
|
|
|
|
[default: current branch]
|
|
|
|
[default: current branch]
|
|
|
|
-i, --issue <number> The issue number to view on the git repository
|
|
|
|
-i, --issue <number> The GitHub issue number
|
|
|
|
[default: open issue from current branch]
|
|
|
|
[default: number from current branch]
|
|
|
|
-c, --commit <hash> The commit to view git repository on
|
|
|
|
-c, --commit <hash> The commit to view on GitHub
|
|
|
|
[default: current commit]
|
|
|
|
[default: current commit]
|
|
|
|
-p, --path <path> The directory/file to view on the git repository
|
|
|
|
-p, --path <path> The directory/file to view on GitHub
|
|
|
|
[default: current working directory]
|
|
|
|
[default: current working directory]
|
|
|
|
-s, --suffix <suffix> A suffix to append onto the base git repository URL
|
|
|
|
--print Don't open GitHub and print URL
|
|
|
|
--print Don't open browser and print the URL
|
|
|
|
-h, --help Print help information
|
|
|
|
-h, --help Print help information
|
|
|
|
-V, --version Print version information
|
|
|
|
-V, --version Print version information
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Contributing
|
|
|
|
## Contributing
|
|
|
|