Skip to content

Commit 5a87e8a

Browse files
authored
Merge pull request #844 from dahlbyk/release-1.0.0
Release 1.0.0
2 parents 637dac1 + c45a5cd commit 5a87e8a

File tree

5 files changed

+44
-32
lines changed

5 files changed

+44
-32
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [dahlbyk, rkeithhill]

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# posh-git Release History
22

3+
## 1.0.0 - March 10, 2021
4+
5+
- Released to PowerShell Gallery.
6+
- Fate of Chocolatey to be determined.
7+
38
## 1.0.0-beta5 - February 14, 2021
49

510
### Added

README.md

Lines changed: 35 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Table of contents:
2020
posh-git is a PowerShell module that integrates Git and PowerShell by providing Git status summary information that
2121
can be displayed in the PowerShell prompt, e.g.:
2222

23-
![C:\Users\Keith\GitHub\posh-git [master ≡ +0 ~1 -0 | +0 ~1 -0 !]> ][prompt-def-long]
23+
![C:\Users\Keith\GitHub\posh-git [main ≡ +0 ~1 -0 | +0 ~1 -0 !]> ][prompt-def-long]
2424

2525
posh-git also provides tab completion support for common git commands, branch names, paths and more.
2626
For example, with posh-git, PowerShell can tab complete git commands like `checkout` by typing `git ch` and pressing
2727
the <kbd>tab</kbd> key. That will tab complete to `git checkout` and if you keep pressing <kbd>tab</kbd>, it will
2828
cycle through other command matches such as `cherry` and `cherry-pick`. You can also tab complete remote names and
29-
branch names e.g.: `git pull or<tab> ma<tab>` tab completes to `git pull origin master`.
29+
branch names e.g.: `git pull or<tab> ma<tab>` tab completes to `git pull origin main`.
3030

3131
## Versions
3232

@@ -36,7 +36,7 @@ branch names e.g.: `git pull or<tab> ma<tab>` tab completes to `git pull origin
3636
|--------------------|----------------------|----------------------|
3737
| [![master build status][av-master-img]][av-master-site] | [![master build status][tv-master-img]][tv-master-site] | [![master build coverage][cc-master-img]][cc-master-site] |
3838

39-
[README][v1-readme][CHANGELOG][v1-change]
39+
[README][main-readme][CHANGELOG][main-change]
4040

4141
- Supports Windows PowerShell 5.x
4242
- Supports PowerShell Core 6+ on all platforms
@@ -46,6 +46,8 @@ branch names e.g.: `git pull or<tab> ma<tab>` tab completes to `git pull origin
4646

4747
#### Releases
4848

49+
- v1.0.0
50+
( [README][v1-readme][CHANGELOG][v1-change] )
4951
- v1.0.0-beta5
5052
( [README][v1b5-readme][CHANGELOG][v1b5-change] )
5153
- v1.0.0-beta4
@@ -248,10 +250,10 @@ By default, the status summary has the following format:
248250

249251
The symbols and surrounding text can be customized by the corresponding properties on `$GitPromptSettings`.
250252

251-
For example, a status of `[master ≡ +0 ~2 -1 | +1 ~1 -0]` corresponds to the following `git status`:
253+
For example, a status of `[main ≡ +0 ~2 -1 | +1 ~1 -0]` corresponds to the following `git status`:
252254

253255
```powershell
254-
# On branch master
256+
# On branch main
255257
#
256258
# Changes to be committed:
257259
# (use "git reset HEAD <file>..." to unstage)
@@ -292,7 +294,7 @@ function.
292294

293295
The prompt function provided by posh-git creates a prompt that looks like this:
294296

295-
![~\GitHub\posh-git [master]> ][prompt-default]
297+
![~\GitHub\posh-git [main]> ][prompt-default]
296298

297299
You can customize the posh-git prompt function or define your own custom prompt function.
298300
The rest of this section covers how to customize posh-git's prompt function using the global variable
@@ -310,7 +312,7 @@ $GitPromptSettings.DefaultPromptPrefix.ForegroundColor = [ConsoleColor]::Magenta
310312

311313
This will change the prompt to:
312314

313-
![02-18 13:45:19 ~\GitHub\posh-git [master]> ][prompt-prefix]
315+
![02-18 13:45:19 ~\GitHub\posh-git [main]> ][prompt-prefix]
314316

315317
If you would prefer not to have any path under your home directory abbreviated with `~`, use the following setting:
316318

@@ -320,7 +322,7 @@ $GitPromptSettings.DefaultPromptAbbreviateHomeDirectory = $false
320322

321323
This will change the prompt to:
322324

323-
![C:\Users\Keith\GitHub\posh-git [master]> ][prompt-no-abbr]
325+
![C:\Users\Keith\GitHub\posh-git [main]> ][prompt-no-abbr]
324326

325327
If you would like to change the color of the path, you can use the following setting on Windows:
326328

@@ -340,7 +342,7 @@ $GitPromptSettings.DefaultPromptPath.ForegroundColor = 0xFFA500
340342

341343
This will change the prompt to:
342344

343-
![~\GitHub\posh-git [master]> ][prompt-path]
345+
![~\GitHub\posh-git [main]> ][prompt-path]
344346

345347
If you would like to make your prompt span two lines, with a newline after the Git status summary, use this setting:
346348

@@ -350,7 +352,7 @@ $GitPromptSettings.DefaultPromptBeforeSuffix.Text = '`n'
350352

351353
This will change the prompt to:
352354

353-
![~\GitHub\posh-git [master]&#10;> ][prompt-two-line]
355+
![~\GitHub\posh-git [main]&#10;> ][prompt-two-line]
354356

355357
You can swap the order of the path and the Git status summary with the following setting:
356358

@@ -360,7 +362,7 @@ $GitPromptSettings.DefaultPromptWriteStatusFirst = $true
360362

361363
This will change the prompt to:
362364

363-
![[master] ~\GitHub\posh-git> ][prompt-swap]
365+
![[main] ~\GitHub\posh-git> ][prompt-swap]
364366

365367
Finally, you can combine these settings to customize the posh-git prompt fairly significantly.
366368
In the `DefaultPromptSuffix` field below, we are prepending the PowerShell history id number before the prompt
@@ -375,7 +377,7 @@ $GitPromptSettings.DefaultPromptSuffix = ' $((Get-History -Count 1).id + 1)$(">"
375377

376378
This will change the prompt to:
377379

378-
![[master] ~\GitHub\posh-git&#10;02-18 14:04:35 38> ][prompt-custom]
380+
![[main] ~\GitHub\posh-git&#10;02-18 14:04:35 38> ][prompt-custom]
379381

380382
Finally, the path portion of the prompt can be contained within delimiters.
381383
For instance, if you would like the containing characters to be red, curly braces, the following settings can be used:
@@ -389,7 +391,7 @@ $GitPromptSettings.AfterPath.ForegroundColor = 'Red'
389391

390392
With these additional values, the previous prompt would become
391393

392-
![[master] {~\GitHub\posh-git}&#10;02-18 14:04:35 38> ][prompt-custom-wpathdelim]
394+
![[main] {~\GitHub\posh-git}&#10;02-18 14:04:35 38> ][prompt-custom-wpathdelim]
393395

394396
### Prompt Layouts
395397

@@ -434,11 +436,11 @@ $global:GitPromptSettings.DefaultPromptBeforeSuffix.Text = '`n$(PromptWriteError
434436

435437
When a PowerShell command fails, this is the prompt you will see:
436438

437-
![~\GitHub\posh-git [master]&#10;! 07-01 22:36:31> ][prompt-error1]
439+
![~\GitHub\posh-git [main]&#10;! 07-01 22:36:31> ][prompt-error1]
438440

439441
When an external application returns a non-zero exit code, 1 in this case, you will see the exit code in the prompt:
440442

441-
![~\GitHub\posh-git [master]&#10;(1) 07-01 22:32:28> ][prompt-error2]
443+
![~\GitHub\posh-git [main]&#10;(1) 07-01 22:32:28> ][prompt-error2]
442444

443445
Note that until you run an external application that sets `$LASTEXITCODE` to zero or you manually set the variable to
444446
0, you will see the exit code for any error. In addition to `LastExitCode` and `DollarQuestion`,
@@ -509,22 +511,22 @@ function prompt {
509511
[choco-site]: https://chocolatey.org/packages/poshgit/
510512
[psgallery-img]: https://img.shields.io/powershellgallery/dt/posh-git.svg
511513
[psgallery-site]: https://www.powershellgallery.com/packages/posh-git
512-
[psgallery-v1]: https://www.powershellgallery.com/packages/posh-git/1.0.0-beta5
514+
[psgallery-v1]: https://www.powershellgallery.com/packages/posh-git/1.0.0
513515
[w3c-colors]: https://www.w3schools.com/colors/colors_names.asp
514516

515517
[posh-sshell-url]: https://github.com/dahlbyk/posh-sshell
516518

517-
[prompt-def-long]: https://github.com/dahlbyk/posh-git/wiki/images/PromptDefaultLong.png "~\GitHub\posh-git [master ≡ +0 ~1 -0 | +0 ~1 -0 !]> "
518-
[prompt-default]: https://github.com/dahlbyk/posh-git/wiki/images/PromptDefault.png "~\GitHub\posh-git [master ≡]> "
519-
[prompt-prefix]: https://github.com/dahlbyk/posh-git/wiki/images/PromptPrefix.png "02-18 13:45:19 ~\GitHub\posh-git [master ≡]>"
520-
[prompt-no-abbr]: https://github.com/dahlbyk/posh-git/wiki/images/PromptNoAbbrevHome.png "C:\Users\Keith\GitHub\posh-git [master ≡]> "
521-
[prompt-path]: https://github.com/dahlbyk/posh-git/wiki/images/PromptOrangePath.png "~\GitHub\posh-git [master ≡]> "
522-
[prompt-swap]: https://github.com/dahlbyk/posh-git/wiki/images/PromptStatusFirst.png "[master ≡] ~\GitHub\posh-git> "
523-
[prompt-two-line]: https://github.com/dahlbyk/posh-git/wiki/images/PromptTwoLine.png "~\GitHub\posh-git [master ≡]&#10;> "
524-
[prompt-custom]: https://github.com/dahlbyk/posh-git/wiki/images/PromptCustom.png "[master ≡] ~\GitHub\posh-git&#10;02-18 14:04:35 38> "
525-
[prompt-custom-wpathdelim]: https://github.com/dahlbyk/posh-git/wiki/images/PromptCustomDelim.png "[master ≡] {~\GitHub\posh-git}&#10;02-18 14:04:35 38> "
526-
[prompt-error1]: https://github.com/dahlbyk/posh-git/wiki/images/PromptError1.png "~\GitHub\posh-git [master ≡]&#10;! 07-01 22:36:31> "
527-
[prompt-error2]: https://github.com/dahlbyk/posh-git/wiki/images/PromptError2.png "~\GitHub\posh-git [master ≡]&#10;(1) 07-01 22:32:28> "
519+
[prompt-def-long]: https://github.com/dahlbyk/posh-git/wiki/images/PromptDefaultLong.png "~\GitHub\posh-git [main ≡ +0 ~1 -0 | +0 ~1 -0 !]> "
520+
[prompt-default]: https://github.com/dahlbyk/posh-git/wiki/images/PromptDefault.png "~\GitHub\posh-git [main ≡]> "
521+
[prompt-prefix]: https://github.com/dahlbyk/posh-git/wiki/images/PromptPrefix.png "02-18 13:45:19 ~\GitHub\posh-git [main ≡]>"
522+
[prompt-no-abbr]: https://github.com/dahlbyk/posh-git/wiki/images/PromptNoAbbrevHome.png "C:\Users\Keith\GitHub\posh-git [main ≡]> "
523+
[prompt-path]: https://github.com/dahlbyk/posh-git/wiki/images/PromptOrangePath.png "~\GitHub\posh-git [main ≡]> "
524+
[prompt-swap]: https://github.com/dahlbyk/posh-git/wiki/images/PromptStatusFirst.png "[main ≡] ~\GitHub\posh-git> "
525+
[prompt-two-line]: https://github.com/dahlbyk/posh-git/wiki/images/PromptTwoLine.png "~\GitHub\posh-git [main ≡]&#10;> "
526+
[prompt-custom]: https://github.com/dahlbyk/posh-git/wiki/images/PromptCustom.png "[main ≡] ~\GitHub\posh-git&#10;02-18 14:04:35 38> "
527+
[prompt-custom-wpathdelim]: https://github.com/dahlbyk/posh-git/wiki/images/PromptCustomDelim.png "[main ≡] {~\GitHub\posh-git}&#10;02-18 14:04:35 38> "
528+
[prompt-error1]: https://github.com/dahlbyk/posh-git/wiki/images/PromptError1.png "~\GitHub\posh-git [main ≡]&#10;! 07-01 22:36:31> "
529+
[prompt-error2]: https://github.com/dahlbyk/posh-git/wiki/images/PromptError2.png "~\GitHub\posh-git [main ≡]&#10;(1) 07-01 22:32:28> "
528530

529531
[v0-change]: https://github.com/dahlbyk/posh-git/blob/v0/CHANGELOG.md
530532
[v0-readme]: https://github.com/dahlbyk/posh-git/blob/v0/README.md
@@ -538,8 +540,8 @@ function prompt {
538540
[v073-change]: https://github.com/dahlbyk/posh-git/blob/v0.7.3/CHANGELOG.md
539541
[v073-readme]: https://github.com/dahlbyk/posh-git/blob/v0.7.3/README.md
540542

541-
[v1-change]: https://github.com/dahlbyk/posh-git/blob/master/CHANGELOG.md
542-
[v1-readme]: https://github.com/dahlbyk/posh-git/blob/master/README.md
543+
[main-change]: https://github.com/dahlbyk/posh-git/blob/master/CHANGELOG.md
544+
[main-readme]: https://github.com/dahlbyk/posh-git/blob/master/README.md
543545

544546
[v1b1-change]: https://github.com/dahlbyk/posh-git/blob/v1.0.0-beta1/CHANGELOG.md
545547
[v1b1-readme]: https://github.com/dahlbyk/posh-git/blob/v1.0.0-beta1/README.md
@@ -556,4 +558,8 @@ function prompt {
556558
[v1b5-change]: https://github.com/dahlbyk/posh-git/blob/v1.0.0-beta5/CHANGELOG.md
557559
[v1b5-readme]: https://github.com/dahlbyk/posh-git/blob/v1.0.0-beta5/README.md
558560

561+
[v1-change]: https://github.com/dahlbyk/posh-git/blob/v1.0.0/CHANGELOG.md
562+
[v1-readme]: https://github.com/dahlbyk/posh-git/blob/v1.0.0/README.md
563+
564+
559565
[wiki-custom-prompt]: https://github.com/dahlbyk/posh-git/wiki/Customizing-Your-PowerShell-Prompt

chocolatey/poshgit.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<id>poshgit</id>
55
<title>posh-git</title>
66
<version>1.0.0-beta5x</version>
7-
<authors>Keith Dahlby, Mark Embling, Jeremy Skinner, Keith Hill</authors>
7+
<authors>Keith Dahlby, Keith Hill, Mark Embling, Jeremy Skinner</authors>
88
<owners>Keith Dahlby</owners>
99
<description>### posh-git
1010
A set of PowerShell scripts which provide Git/PowerShell integration

src/posh-git.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
RootModule = 'posh-git.psm1'
55

66
# Version number of this module.
7-
ModuleVersion = '1.0.0.0'
7+
ModuleVersion = '1.0.0.1'
88

99
# ID used to uniquely identify this module
1010
GUID = '74c9fd30-734b-4c89-a8ae-7727ad21d1d5'
@@ -73,7 +73,7 @@ PrivateData = @{
7373
ReleaseNotes = 'https://github.com/dahlbyk/posh-git/blob/master/CHANGELOG.md'
7474

7575
# OVERRIDE THIS FIELD FOR PUBLISHED RELEASES - LEAVE AT 'alpha' FOR CLONED/LOCAL REPO USAGE
76-
Prerelease = 'beta5x'
76+
Prerelease = 'alpha'
7777
}
7878
}
7979
}

0 commit comments

Comments
 (0)