Open repositories, directories, and files in the browser
Project description
Git Browse
==========
|PyPI| |PyPI|
|Codeship Status for albertyw/git-browse| |Dependency Status| |Code
Climate| |Test Coverage|
Open repositories, directories, and files in the browser
This is a script that can be added as a gitconfig alias to easily browse
repositories on Git hosting services (e.g. github). It is built to model
[arcanist's] (https://github.com/phacility/arcanist)
`browse <https://github.com/phacility/arcanist/blob/master/src/workflow/ArcanistBrowseWorkflow.php>`__
command. It is specifically designed to have no dependencies so it
should be easily installable and very portable.
Installation
------------
You need to first clone this repository somewhere on your system
(perhaps in your `dotfiles <https://github.com/albertyw/dotfiles>`__)
repository.
.. code:: bash
git clone git@github.com:albertyw/git-browse $REPOSITORY_LOCATION
git config --global \
alias.browse \
"!"$REPOSITORY_LOCATION"/git_browse/browse.py --path=\${GIT_PREFIX:-./}"
Usage
-----
::
Usage: git browse [object]
If ``[object]`` is omitted, the root repository page will be opened. If
``[object]`` is a directory or file, then that object will be opened.
Development
-----------
.. code:: bash
pip install -r requirements-test.txt
coverage run setup.py test
coverage report
flake8
Publishing
----------
.. code:: bash
sudo apt-get install pandoc
pip install twine pypandoc
python setup.py sdist bdist_wheel
twine upload dist/*
.. |PyPI| image:: https://img.shields.io/pypi/v/git-browse.svg
:target: https://github.com/albertyw/git-browse
.. |PyPI| image:: https://img.shields.io/pypi/pyversions/git-browse.svg
:target:
.. |Codeship Status for albertyw/git-browse| image:: https://codeship.com/projects/fbd67810-b952-0134-2c2e-166255a25182/status?branch=master
:target: https://codeship.com/projects/194945
.. |Dependency Status| image:: https://gemnasium.com/badges/github.com/albertyw/git-browse.svg
:target: https://gemnasium.com/github.com/albertyw/git-browse
.. |Code Climate| image:: https://codeclimate.com/github/albertyw/git-browse/badges/gpa.svg
:target: https://codeclimate.com/github/albertyw/git-browse
.. |Test Coverage| image:: https://codeclimate.com/github/albertyw/git-browse/badges/coverage.svg
:target: https://codeclimate.com/github/albertyw/git-browse/coverage
==========
|PyPI| |PyPI|
|Codeship Status for albertyw/git-browse| |Dependency Status| |Code
Climate| |Test Coverage|
Open repositories, directories, and files in the browser
This is a script that can be added as a gitconfig alias to easily browse
repositories on Git hosting services (e.g. github). It is built to model
[arcanist's] (https://github.com/phacility/arcanist)
`browse <https://github.com/phacility/arcanist/blob/master/src/workflow/ArcanistBrowseWorkflow.php>`__
command. It is specifically designed to have no dependencies so it
should be easily installable and very portable.
Installation
------------
You need to first clone this repository somewhere on your system
(perhaps in your `dotfiles <https://github.com/albertyw/dotfiles>`__)
repository.
.. code:: bash
git clone git@github.com:albertyw/git-browse $REPOSITORY_LOCATION
git config --global \
alias.browse \
"!"$REPOSITORY_LOCATION"/git_browse/browse.py --path=\${GIT_PREFIX:-./}"
Usage
-----
::
Usage: git browse [object]
If ``[object]`` is omitted, the root repository page will be opened. If
``[object]`` is a directory or file, then that object will be opened.
Development
-----------
.. code:: bash
pip install -r requirements-test.txt
coverage run setup.py test
coverage report
flake8
Publishing
----------
.. code:: bash
sudo apt-get install pandoc
pip install twine pypandoc
python setup.py sdist bdist_wheel
twine upload dist/*
.. |PyPI| image:: https://img.shields.io/pypi/v/git-browse.svg
:target: https://github.com/albertyw/git-browse
.. |PyPI| image:: https://img.shields.io/pypi/pyversions/git-browse.svg
:target:
.. |Codeship Status for albertyw/git-browse| image:: https://codeship.com/projects/fbd67810-b952-0134-2c2e-166255a25182/status?branch=master
:target: https://codeship.com/projects/194945
.. |Dependency Status| image:: https://gemnasium.com/badges/github.com/albertyw/git-browse.svg
:target: https://gemnasium.com/github.com/albertyw/git-browse
.. |Code Climate| image:: https://codeclimate.com/github/albertyw/git-browse/badges/gpa.svg
:target: https://codeclimate.com/github/albertyw/git-browse
.. |Test Coverage| image:: https://codeclimate.com/github/albertyw/git-browse/badges/coverage.svg
:target: https://codeclimate.com/github/albertyw/git-browse/coverage
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
git-browse-2.1.0.tar.gz
(5.1 kB
view details)
Built Distribution
File details
Details for the file git-browse-2.1.0.tar.gz
.
File metadata
- Download URL: git-browse-2.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7dcb0a85064e8f99f7936233dc586d1c13128bddf516fb76c47de84517e6884 |
|
MD5 | 474b53d78985565e42916b6d18723f4a |
|
BLAKE2b-256 | e23f3aeae591565229a3f1283f5c2f19d55113143cd1cc37b726d35f11d7580f |
File details
Details for the file git_browse-2.1.0-py3-none-any.whl
.
File metadata
- Download URL: git_browse-2.1.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba3f07703abffae3521e33846909a2319511d9a2aa2a0cf47e4d5deea5e5d563 |
|
MD5 | c8809cbdc2b81861da41e06ae4c699fd |
|
BLAKE2b-256 | 767e37ad152a1f68bb88e2df106634e1395efcddf56a4ddc9d0b20d713b0b607 |