-
-
Notifications
You must be signed in to change notification settings - Fork 811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove PowerShell v2 support. #427
Changes from all commits
cf148fd
b4165df
4026378
28c3bba
d4b1669
1241644
6b2d854
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ os: | |
|
||
branches: | ||
only: | ||
- develop | ||
- master | ||
|
||
init: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
@{ | ||
|
||
# Script module or binary module file associated with this manifest. | ||
ModuleToProcess = 'posh-git.psm1' | ||
RootModule = 'posh-git.psm1' | ||
|
||
# Version number of this module. | ||
ModuleVersion = '0.7.0' | ||
ModuleVersion = '1.0.0.0' | ||
|
||
# ID used to uniquely identify this module | ||
GUID = '74c9fd30-734b-4c89-a8ae-7727ad21d1d5' | ||
|
@@ -19,27 +19,23 @@ Copyright = '(c) 2010-2017 Keith Dahlby and contributors' | |
Description = 'Provides prompt with Git status summary information and tab completion for Git commands, parameters, remotes and branch names.' | ||
|
||
# Minimum version of the Windows PowerShell engine required by this module | ||
PowerShellVersion = '2.0' | ||
PowerShellVersion = '3.0' | ||
|
||
# Functions to export from this module | ||
FunctionsToExport = @( | ||
'Invoke-NullCoalescing', | ||
'Add-PoshGitToProfile', | ||
'Get-GitStatus', | ||
'Get-GitDirectory', | ||
'Update-AllBranches', | ||
'Write-GitStatus', | ||
'Write-Prompt', | ||
'Write-VcsStatus', | ||
'Get-GitBranch', | ||
'Get-GitStatus', | ||
'Enable-GitColors', | ||
'Get-GitDirectory', | ||
'TabExpansion', | ||
'Get-AliasPattern', | ||
'Get-SshAgent', | ||
'Start-SshAgent', | ||
'Stop-SshAgent', | ||
'Add-SshKey', | ||
'Get-SshPath', | ||
'Update-AllBranches', | ||
'TabExpansion', | ||
'tgit' | ||
) | ||
|
||
|
@@ -50,27 +46,29 @@ CmdletsToExport = @() | |
VariablesToExport = @() | ||
|
||
# Aliases to export from this module | ||
AliasesToExport = @('??') | ||
AliasesToExport = @() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove until we stumble on an alias we want to export (unlikely)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An empty array helps with overall system performance. If you omit the entry, PowerShell does more expensive work to see if you meant to export any aliases. |
||
|
||
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. | ||
# Private data to pass to the module specified in RootModule/ModuleToProcess. | ||
# This may also contain a PSData hashtable with additional module metadata used by PowerShell. | ||
PrivateData = @{ | ||
|
||
PSData = @{ | ||
|
||
# Tags applied to this module. These help with module discovery in online galleries. | ||
Tags = @('git', 'prompt', 'tab', 'tab-completion', 'tab-expansion', 'tabexpansion') | ||
|
||
# A URL to the license for this module. | ||
LicenseUri = 'https://github.com/dahlbyk/posh-git/blob/v0.7.0/LICENSE.txt' | ||
LicenseUri = 'https://github.com/dahlbyk/posh-git/blob/develop/LICENSE.txt' | ||
|
||
# A URL to the main website for this project. | ||
ProjectUri = 'https://github.com/dahlbyk/posh-git' | ||
|
||
# ReleaseNotes of this module | ||
ReleaseNotes = 'https://github.com/dahlbyk/posh-git/blob/v0.7.0/CHANGELOG.md' | ||
ReleaseNotes = 'https://github.com/dahlbyk/posh-git/blob/develop/CHANGELOG.md' | ||
|
||
} # End of PSData hashtable | ||
# TODO: REMOVE BEFOE RELEASE | ||
PreReleaseVersion = 'pre00' | ||
} | ||
|
||
} # End of PrivateData hashtable | ||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
. $PSScriptRoot\Shared.ps1 | ||
|
||
Describe 'Get-GitBranch Tests' { | ||
Context 'Get-GitBranch GIT_DIR Tests' { | ||
It 'Returns GIT_DIR! when in .git dir of the repo' { | ||
$repoRoot = (Resolve-Path $PSScriptRoot\..).Path | ||
Set-Location $repoRoot\.git -ErrorAction Stop | ||
Get-GitBranch | Should BeExactly 'GIT_DIR!' | ||
} | ||
It 'Returns correct path when in a child folder of the .git dir of the repo' { | ||
$repoRoot = (Resolve-Path $PSScriptRoot\..).Path | ||
Set-Location $repoRoot\.git\hooks -ErrorAction Stop | ||
Get-GitBranch | Should BeExactly 'GIT_DIR!' | ||
InModuleScope posh-git { | ||
Describe 'Get-GitBranch Tests' { | ||
Context 'Get-GitBranch GIT_DIR Tests' { | ||
It 'Returns GIT_DIR! when in .git dir of the repo' { | ||
$repoRoot = (Resolve-Path $PSScriptRoot\..).Path | ||
Set-Location $repoRoot\.git -ErrorAction Stop | ||
Get-GitBranch | Should BeExactly 'GIT_DIR!' | ||
} | ||
It 'Returns correct path when in a child folder of the .git dir of the repo' { | ||
$repoRoot = (Resolve-Path $PSScriptRoot\..).Path | ||
Set-Location $repoRoot\.git\hooks -ErrorAction Stop | ||
Get-GitBranch | Should BeExactly 'GIT_DIR!' | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍