From fba74a4e27434fadd47cfd85b3637d31755d6e13 Mon Sep 17 00:00:00 2001 From: Jaap Brasser Date: Wed, 24 Jul 2019 22:35:01 -0700 Subject: [PATCH] Added documentation --- Get-GitPullRequestLocal/Get-GitPullRequestLocal.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Get-GitPullRequestLocal/Get-GitPullRequestLocal.ps1 b/Get-GitPullRequestLocal/Get-GitPullRequestLocal.ps1 index deb20e7..9d948bd 100644 --- a/Get-GitPullRequestLocal/Get-GitPullRequestLocal.ps1 +++ b/Get-GitPullRequestLocal/Get-GitPullRequestLocal.ps1 @@ -16,6 +16,7 @@ Will create a folder in C:\Temp named after the PR number, and clone the specifi param( [string] $Uri, [string] $Path = 'C:\Temp', + # If this parameter is specified VScode will not automatically open after pulling in the PR [switch] $NoCode ) @@ -38,13 +39,12 @@ Will create a folder in C:\Temp named after the PR number, and clone the specifi Set-Location (Get-ChildItem).fullname + # Retrieve status of the current branch + git status + # open VScode If (!$nocode) { code . } - - - # Retrieve status of the current branch - git status - } catch {} +} catch {} }