-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds support for using git-spice with Windows. I'm pretty sure it already works, but testing it is a bit difficult, especially since I don't have a Windows system to test on. All terminal prompt use creack/pty to create a fake terminal. Until creack/pty#155 is merged, these tests cannot be run on Windows. We'll skip the prompt tests on Windows for the time being.
- Loading branch information
Showing
33 changed files
with
74 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
kind: Added | ||
body: Windows support. | ||
time: 2024-09-07T16:16:36.18073-07:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
# Don't magically change line endings by default, | ||
# but always use LF in test scripts. | ||
# | ||
# Ref: | ||
# - https://github.com/golang/go/blob/807e01db4840e25e4d98911b28a8fa54244b8dfa/.gitattributes | ||
# - https://github.com/rogpeppe/go-internal/pull/106 | ||
* -text | ||
*.txt text eol=lf | ||
|
||
*.png filter=lfs diff=lfs merge=lfs -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# auth operations prompt for forge if it cannot be guessed | ||
|
||
[!unix] skip # pending github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-07-01T04:30:32Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# branch checkout with lots of branches | ||
# and no argument prompts for branch name. | ||
|
||
[!unix] skip # pending github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-03-30T14:59:32Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# branch checkout prompt shows trunk | ||
# if it's not checked out. | ||
|
||
[!unix] skip # pending github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-06-03T20:06:07Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# branch checkout of an untracked branch | ||
# prompts to check it out. | ||
|
||
[!unix] skip # pending github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-03-30T14:59:32Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
# | ||
# https://github.com/abhinav/git-spice/issues/258 | ||
|
||
[!unix] skip # pending github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-07-20T22:53:32Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# --force is needed to delete an unmerged branch. | ||
|
||
[!unix] skip # pending github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-03-30T14:59:32Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# Renaming a branch without a new name | ||
# prompts for a new name | ||
|
||
[!unix] skip # pending github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-03-30T14:59:32Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
[!unix] skip # pending https://github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-06-23T10:00:12Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# branch submit should not truncate a long body. | ||
# https://github.com/abhinav/git-spice/issues/90 | ||
|
||
[!unix] skip # pending github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-05-23T20:06:32Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# 'branch submit' shows a prompt if there are multiple PR templates. | ||
|
||
[!unix] skip # pending github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-06-15T21:55:32Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# branch submit fails if there's no editor. | ||
# https://github.com/abhinav/git-spice/issues/310 | ||
|
||
[!unix] skip # pending github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-07-29T19:25:12Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# 'branch submit' with a PR template and no additional commit body | ||
# places the template at the top. | ||
|
||
[!unix] skip # pending https://github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-06-19T04:32:32Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# 'branch submit' uses the PR template if there is one | ||
# with the terminal prompt. | ||
|
||
[!unix] skip # pending github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-06-03T08:32:32Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# 'branch submit' can recover previously entered commit metadata | ||
# if a submission attempt fails. | ||
|
||
[!unix] skip # pending github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-07-03T05:07:09Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# 'branch submit' after initializing without a remote | ||
# will ask for a remote to push to. | ||
|
||
[!unix] skip # pending github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-04-05T16:40:32Z' | ||
|
||
|
@@ -36,6 +38,7 @@ Contents of feature1 | |
await Please select a remote | ||
snapshot dialog | ||
feed \r | ||
await | ||
|
||
-- golden/prompt.txt -- | ||
### dialog ### | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# branch submit uses the editor set by Git. | ||
# https://github.com/abhinav/git-spice/issues/274 | ||
|
||
[!unix] skip # pending github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-07-23T07:11:32Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# Basic 'commit split' usage. | ||
|
||
[!unix] skip # pending github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-07-08T05:04:32Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
# | ||
# https://github.com/abhinav/git-spice/issues/291 | ||
|
||
[!unix] skip # pending github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-08-23T17:08:32Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# 'gs repo init' prompts for a remote | ||
# if there are multiple remotes. | ||
|
||
[!unix] skip # pending github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-03-30T14:59:32Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
# if the heads mismatch and we're in interactive mode, | ||
# prompt the user for deletion. | ||
|
||
[!unix] skip # pending https://github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-06-05T05:29:28Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# 'gs top' prompts for selection | ||
# if there are multiple top-level branches. | ||
|
||
[!unix] skip # pending github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-03-30T14:59:32Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# Moving in a linear stack with gs up/bd/bt/bb. | ||
|
||
[!unix] skip # pending https://github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-03-30T14:59:32Z' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# 'gs branch up' prompts to pick between multiple branches. | ||
|
||
[!unix] skip # pending https://github.com/creack/pty/pull/155 | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-03-30T14:59:32Z' | ||
|
||
|