-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- rebase the changes from nightly - bump - NGM to `0.5.0` - Nushell to `0.89.0` - Nupm to nushell/nupm#57 > **Note** > ```nushell > git diff nightly > ``` > correctly gives > ```diff > diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml > index 9fc71c9..57437cb 100644 > --- a/.github/workflows/ci.yml > +++ b/.github/workflows/ci.yml > @@ -13,10 +13,10 @@ jobs: > tests: > uses: ./.github/workflows/nupm-tests.yml > with: > - nu_version: "0.88.1" > - nupm_revision: "6a9618fa21453bca4000ac33707b7aace0da35c7" > + nu_version: "0.89.0" > + nupm_revision: "66e2eaa848e3f72c1b4a841f26f4dc7efc4fedb9" > > documentation: > uses: ./.github/workflows/check-documentation.yml > with: > - nu_version: "0.88.1" > + nu_version: "0.89.0" > diff --git a/pkgs/nu-git-manager-sugar/nupm.nuon b/pkgs/nu-git-manager-sugar/nupm.nuon > index 974b12f..bee1672 100644 > --- a/pkgs/nu-git-manager-sugar/nupm.nuon > +++ b/pkgs/nu-git-manager-sugar/nupm.nuon > @@ -1,6 +1,6 @@ > { > name: "nu-git-manager-sugar" > - version: 0.4.0 > + version: 0.5.0 > description: "A collection of extra Nushell tools to manage `git` repositories." > documentation: "https://github.com/amtoine/nu-git-manager/blob/main/README.md" > maintainers: [ > @@ -9,7 +9,7 @@ > ] > license: "https://github.com/amtoine/nu-git-manager/blob/main/LICENSE" > dependencies: { > - nushell: 0.88.1 > + nushell: 0.89.0 > git: 2.40.1 > optionals: { > "sugar gh": { > diff --git a/pkgs/nu-git-manager/nupm.nuon b/pkgs/nu-git-manager/nupm.nuon > index e17af38..9fa9895 100644 > --- a/pkgs/nu-git-manager/nupm.nuon > +++ b/pkgs/nu-git-manager/nupm.nuon > @@ -1,6 +1,6 @@ > { > name: "nu-git-manager" > - version: 0.4.0 > + version: 0.5.0 > description: "A collection of Nushell tools to manage `git` repositories." > documentation: "https://github.com/amtoine/nu-git-manager/blob/main/README.md" > maintainers: [ > @@ -9,7 +9,7 @@ > ] > license: "https://github.com/amtoine/nu-git-manager/blob/main/LICENSE" > dependencies: { > - nushell: 0.88.1 > + nushell: 0.89.0 > git: 2.40.1 > } > type: "module" > ```
- Loading branch information
Showing
24 changed files
with
85 additions
and
58 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
File renamed without changes.
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
3 changes: 3 additions & 0 deletions
3
pkgs/nu-git-manager-sugar/nu-git-manager-sugar/git/lib/mod.nu
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 @@ | ||
export module git.nu | ||
export module prompt.nu | ||
export module style.nu |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module completions.nu | ||
export module extra.nu | ||
export module git/ | ||
export module github.nu |
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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export module cache.nu | ||
export module dir.nu | ||
export module path.nu | ||
export module store.nu |
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,2 @@ | ||
export module repo.nu | ||
export module url.nu |
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,25 +1,27 @@ | ||
use std assert | ||
|
||
use ../../../pkgs/nu-git-manager/nu-git-manager/git/url.nu [ | ||
use ../../../pkgs/nu-git-manager/nu-git-manager/git url [ | ||
parse-git-url, get-fetch-push-urls | ||
] | ||
use ../../../pkgs/nu-git-manager/nu-git-manager/git/repo.nu [ | ||
use ../../../pkgs/nu-git-manager/nu-git-manager/git repo [ | ||
is-grafted, get-root-commit, list-remotes | ||
] | ||
use ../../../pkgs/nu-git-manager/nu-git-manager/fs/store.nu [ | ||
use ../../../pkgs/nu-git-manager/nu-git-manager/fs store [ | ||
get-repo-store-path, list-repos-in-store | ||
] | ||
use ../../../pkgs/nu-git-manager/nu-git-manager/fs/cache.nu [ | ||
use ../../../pkgs/nu-git-manager/nu-git-manager/fs cache [ | ||
get-repo-store-cache-path, check-cache-file, add-to-cache, remove-from-cache, open-cache, | ||
save-cache, clean-cache-dir | ||
] | ||
use ../../../pkgs/nu-git-manager/nu-git-manager/fs/path.nu [ | ||
use ../../../pkgs/nu-git-manager/nu-git-manager/fs path [ | ||
"path sanitize", "path remove-prefix", "path remove-trailing-path-sep" | ||
] | ||
use ../../../pkgs/nu-git-manager/nu-git-manager/fs/dir.nu [clean-empty-directories-rec] | ||
use ../../../pkgs/nu-git-manager/nu-git-manager/fs dir [clean-empty-directories-rec] | ||
|
||
use ../../../tests/common/setup.nu [get-random-test-dir] | ||
|
||
export module gm.nu | ||
|
||
export module path { | ||
export def sanitization [] { | ||
assert equal ('\foo\bar' | path sanitize) "/foo/bar" | ||
|
@@ -43,15 +45,15 @@ export def git-url-parsing [] { | |
let cases = [ | ||
[input, host, owner, group, repo]; | ||
|
||
["https://github.com/foo/bar", "github.com", "foo", null, "bar"], | ||
["https://github.com/foo/bar.git", "github.com", "foo", null, "bar"], | ||
["https://github.com/foo/bar/tree/branch/file", "github.com", "foo", null, "bar"], | ||
["ssh://github.com/foo/bar", "github.com", "foo", null, "bar"], | ||
["[email protected]:foo/bar", "github.com", "foo", null, "bar"], | ||
["https://gitlab.com/foo/bar", "gitlab.com", "foo", null, "bar"], | ||
["[email protected]:foo/bar", "gitlab.com", "foo", null, "bar"], | ||
["https://github.com/foo/bar", "github.com", "foo", "", "bar"], | ||
["https://github.com/foo/bar.git", "github.com", "foo", "", "bar"], | ||
["https://github.com/foo/bar/tree/branch/file", "github.com", "foo", "", "bar"], | ||
["ssh://github.com/foo/bar", "github.com", "foo", "", "bar"], | ||
["[email protected]:foo/bar", "github.com", "foo", "", "bar"], | ||
["https://gitlab.com/foo/bar", "gitlab.com", "foo", "", "bar"], | ||
["[email protected]:foo/bar", "gitlab.com", "foo", "", "bar"], | ||
["[email protected]:foo/bar/baz/brr", "gitlab.com", "foo", "bar/baz", "brr"], | ||
["git://git.suckless.org/st", "git.suckless.org", null, null, "st"], | ||
["git://git.suckless.org/st", "git.suckless.org", "", "", "st"], | ||
] | ||
|
||
for case in $cases { | ||
|
@@ -202,7 +204,7 @@ export def cache-manipulation [] { | |
root_hash: "", | ||
} | ||
|
||
def "assert cache" [cache: list<string>]: nothing -> nothing { | ||
def "assert cache" [cache: list<any>]: nothing -> nothing { | ||
let actual = open-cache $CACHE | update path { path remove-prefix (pwd | path sanitize) } | ||
let expected = $cache | ||
| each {|it| | ||
|
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