git-pr Release dev2+ng5b0396a

Similar documents
Sensor-fusion Demo Documentation

XStatic Documentation

dublincore Documentation

PyCon APAC 2014 Documentation

Elegans Documentation

agate-sql Documentation

invenio-formatter Documentation

inflection Documentation

sensor-documentation Documentation

mp3fm Documentation Release Akshit Agarwal

BME280 Documentation. Release Richard Hull

Tailor Documentation. Release 0.1. Derek Stegelman, Garrett Pennington, and Jon Faustman

CuteFlow-V4 Documentation

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

Dellve CuDNN Documentation

X Generic Event Extension. Peter Hutterer

disspcap Documentation

utidylib Documentation Release 0.4

twstock Documentation

MCAFEE THREAT INTELLIGENCE EXCHANGE RESILIENT THREAT SERVICE INTEGRATION GUIDE V1.0

Feed Cache for Umbraco Version 2.0

puppet-diamond Documentation

deepatari Documentation

retask Documentation Release 1.0 Kushal Das

Testworks User Guide. Release 1.0. Dylan Hackers

aiounittest Documentation

jumpssh Documentation

Open Source Used In Cisco Configuration Professional for Catalyst 1.0

Spotter Documentation Version 0.5, Released 4/12/2010

Piexif Documentation. Release 1.0.X. hmatoba

Django Mail Queue Documentation

abstar Documentation Release Bryan Briney

Asthma Eliminator MicroMedic Competition Entry

Daedalus Documentation

josync Documentation Release 1.0 Joel Goop and Jonas Einarsson

Piexif Documentation. Release 1.0.X. hmatoba

Inptools Manual. Steffen Macke

OPi.GPIO Documentation

Statsd Metrics Documentation

clipbit Release 0.1 David Fraser

mqtt-broker Documentation

Dependency Injection Container Documentation

Firebase PHP SDK. Release

TWO-FACTOR AUTHENTICATION Version 1.1.0

SopaJS JavaScript library package

PHP-FCM Documentation

Java Relying Party API v1.0 Programmer s Guide

NDIS Implementation Guide

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

XEP-0099: IQ Query Action Protocol

Industries Package. TARMS Inc.

docxtemplater Documentation

pydocstyle Documentation

Github/Git Primer. Tyler Hague

Black Mamba Documentation

Additional License Authorizations for HPE OneView for Microsoft Azure Log Analytics

What is git? Distributed Version Control System (VCS); Created by Linus Torvalds, to help with Linux development;

delegator Documentation

MatPlotTheme Documentation

Imagination Documentation

Instagram PHP Documentation

RTI Connext DDS Core Libraries

ProFont began life as a better version of Monaco 9 which is especially good for programmers. It was created circa 1987 by Andrew Welch.

Guest Book. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

Software Development I

Python Project Example Documentation

MEAS HTU21D PERIPHERAL MODULE

HTNG Web Services Product Specification. Version 2014A

Colgate, WI

SWTP 6800 Simulator Usage 27-Mar-2012

KEMP Driver for Red Hat OpenStack. KEMP LBaaS Red Hat OpenStack Driver. Installation Guide

Preprocessing of fmri data

LANDISVIEW Beta v1.0-user Guide

HTNG Web Services Product Specification. Version 2011A

User Guide. Calibrated Software, Inc.

Django MFA Documentation

Imagination Documentation

MEAS TEMPERATURE SYSTEM SENSOR (TSYS01) XPLAINED PRO BOARD

Grove - RTC User Manual

XEP-0044: Full Namespace Support for XML Streams

Python-ASN1. Release 2.2.0

google-search Documentation

XEP-0087: Stream Initiation

Python simple arp table reader Documentation

LoadMaster VMware Horizon (with View) 6. Deployment Guide

XEP-0399: Client Key Support

Adobe Connect. Adobe Connect. Deployment Guide

Visualizing Git Workflows. A visual guide to 539 workflows

ExaFMM. Fast multipole method software aiming for exascale systems. User's Manual. Rio Yokota, L. A. Barba. November Revision 1

Migration Tool. Migration Tool (Beta) Technical Note

SW MAPS TEMPLATE BUILDER. User s Manual

2 Initialize a git repository on your machine, add a README file, commit and push

About SJTUG. SJTU *nix User Group SJTU Joyful Techie User Group

Roman Numeral Converter Documentation

Getting the files for the first time...2. Making Changes, Commiting them and Pull Requests:...5. Update your repository from the upstream master...

Simba Cassandra ODBC Driver with SQL Connector

ClassPad Manager Subscription

Release Nicholas A. Del Grosso

Git and GitHub. Dan Wysocki. February 12, Dan Wysocki Git and GitHub February 12, / 48

HCP Chargeback Collector Documentation

Transcription:

git-pr Release 0.2.1.dev2+ng5b0396a Mar 20, 2017

Contents 1 Table Of Contents 3 1.1 Installation................................................ 3 1.2 Usage................................................... 3 1.3 Changes................................................. 5 1.4 License.................................................. 5 i

ii

git-pr, Release 0.2.1.dev2+ng5b0396a A git command for fetching GitHub s pull requests to local copy. Please do not hesitate to contribute by any means you can and/or want: by submitting patches by filing bugs Source Bugs https://github.com/ikalnitsky/git-pr/ https://github.com/ikalnitsky/git-pr/issues Contents 1

git-pr, Release 0.2.1.dev2+ng5b0396a 2 Contents

CHAPTER 1 Table Of Contents Installation This part of the documentation covers the installation of git-pr. The first step to using any software package is getting it properly installed. Requirements OS / Python 2.7 3.3 3.4 3.5 3.6 pypy Linux yes yes yes yes yes maybe OS X yes yes yes yes yes maybe Windows maybe maybe maybe maybe maybe maybe Note: In the table above, maybe means that the project should work fine with proper installation. However, the configuration isn t a part of testing gates on CI, so there s no guarantee it works. Install via pip A universal installation method that works on Linux, OS X and even Windows. $ [sudo] pip install git-pr Usage git-pr provides a simple command line interface with the following synopsis: git pr [repository] pull_request [--branch test] 3

git-pr, Release 0.2.1.dev2+ng5b0396a Fetch Usually you just need to run the following short command in order to fetch pull request with ID=42: $ git pr 42 When it s done, you ll be automatically switched to fetched commit(s). Note: By default, the origin remote is assumed. So please make sure it points to GitHub, otherwise the command will fail. Fetch From Remote Sometimes origin remote is configured to point to some internal or private repo. In this case you must specify explicitly remote that points to GitHub mirror: $ git pr github 42 It behaves exactly like the command above, but unlike last one the github remote will be used instead of origin. Fetch From URL If, by some reason, you don t have a remote pointed to GitHub, you can specify repo URL instead: $ git pr https://github.com/ikalnitsky/git-pr.git 42 Fetch To New Branch By default, you re in detached state after fetching. So if you switch to other branch in order to do some work you won t be able to switch back. That s why git-pr supports a way to fetch a pull request into a new branch. In order to do so you have to pass either -b or --branch argument with a branch name: $ git pr 42 -b pr/42 When it s done, the pr/42 local branch is created with content of the pull request with ID=42. Fetch Merge Commit Each pull request produces two refs: one, that points to submitted pull request as its author submitted it; one, that points to a merge commit of a pull request and a branch it s submitted to; By default, git-pr fetches the first one. If you want to fetch the second one, you ve got to pass either -m or --merge argument: $ git pr 42 --merge 4 Chapter 1. Table Of Contents

git-pr, Release 0.2.1.dev2+ng5b0396a Fetch Without Checkout By default, when a pull request is fetched, git-pr automatically checkouts to the fetched copy. It s not something you always want, so if you need to turn it off just pass either -C or --no-checkout argument: $ git pr 42 --no-checkout Changes Here you can see the list of changes between each git-pr release. 0.2.0 (2017-03-19) Drop Python 3.2 support simply because it s dead (reached end of life). New argument: -m, --merge. The flag is used to fetch a merge commit of a given pull request and a branch the pull request is submitted to. New argument: -C, --no-checkout. The flag is used to do not fetch over to fetched pull request and keep this step up to user. 0.1.0 (2015-10-17) First public release. License The MIT License (MIT) Copyright (c) 2015 Ihor Kalnytskyi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software ), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PAR- TICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFT- WARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 1.3. Changes 5