git-pull-request
Advanced tools
Comparing version 0.2.1 to 0.2.2
16
gpr.js
@@ -11,3 +11,3 @@ #!/usr/local/bin/node | ||
var version = 'git-pull-request 0.2.1' | ||
var version = 'git-pull-request 0.2.2' | ||
var usage = '\n gpr [-i | -l | -lsr | -p | -b <name> | -d | -D | -h | -v ] <pr#>' | ||
@@ -19,5 +19,5 @@ var help = usage + '\n\n' + | ||
' [-p | pull] Pull the remote branch for <pr#> to the current branch.\n' + | ||
' [-b | branch] Create new branch <name> from master and pull. Defaults to \'gpr-<pr#>\'\n' + | ||
' [-d | delete] Delete the gpr-<pr#> branch.\n' + | ||
' [-D | Delete] Force delete the gpr-<pr#> branch.\n' + | ||
' [-b | branch] Create new branch <name> from master and pull. Defaults to \'gpr/<pr#>\'\n' + | ||
' [-d | delete] Delete the gpr/<pr#> branch.\n' + | ||
' [-D | Delete] Force delete the gpr/<pr#> branch.\n' + | ||
' [-v | version] git-pull-request version.\n' + | ||
@@ -45,3 +45,3 @@ ' [-h | help ] This help.\n' + | ||
} else if (args[2] == '-l' || args[2] == 'ls' || args[2] == 'list') { | ||
execho('git branch --list gpr-*'); | ||
execho('git branch --list gpr/*'); | ||
process.exit(); | ||
@@ -105,3 +105,3 @@ } else if (args[2] == '-lsr' || args[2] == 'lsr' || args[2] == 'ls-remote') { | ||
var pull = "git pull " + response.head.repo.clone_url + " " + response.head.ref; | ||
var branch = 'gpr-' + prNumber; | ||
var branch = 'gpr/' + prNumber; | ||
}; | ||
@@ -129,3 +129,3 @@ | ||
execho('git checkout master'); | ||
execho('git branch -d gpr-' + prNumber); | ||
execho('git branch -d gpr/' + prNumber); | ||
break; | ||
@@ -135,3 +135,3 @@ | ||
execho('git checkout master'); | ||
execho('git branch -D gpr-' + prNumber); | ||
execho('git branch -D gpr/' + prNumber); | ||
break; | ||
@@ -138,0 +138,0 @@ |
{ | ||
"name": "git-pull-request", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A cli utility to pull a remote branch based on a github PR number", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1