Skip to content

Commit d650ee2

Browse files
committed
chore!: Rename to git2-ext
Fixes #3
1 parent a8db827 commit d650ee2

File tree

6 files changed

+33
-29
lines changed

6 files changed

+33
-29
lines changed

.github/settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
repository:
44
description: git2 Extensions
5-
homepage: docs.rs/git2ext
5+
homepage: docs.rs/git2-ext
66
topics: rust cli clap
77
has_issues: true
88
has_projects: false

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
<!-- next-header -->
88
## [Unreleased] - ReleaseDate
99

10+
### Breaking Change
11+
12+
- Renamed from git2ext to git2-ext
13+
1014
## [0.0.3] - 2022-03-11
1115

1216
### Features
@@ -15,5 +19,5 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1519
- Wrappers around git hooks
1620

1721
<!-- next-url -->
18-
[Unreleased]: https://github.com/gitext-rs/git2ext/compare/v0.0.3...HEAD
19-
[0.0.3]: https://github.com/gitext-rs/git2ext/compare/15449592300986753c174f63d412b212ad919285...v0.0.3
22+
[Unreleased]: https://github.com/gitext-rs/git2-ext/compare/v0.0.3...HEAD
23+
[0.0.3]: https://github.com/gitext-rs/git2-ext/compare/15449592300986753c174f63d412b212ad919285...v0.0.3

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to git2ext
1+
# Contributing to git2-ext
22

33
Thanks for wanting to contribute! There are many ways to contribute and we
44
appreciate any level you're willing to do.
@@ -63,7 +63,7 @@ When we're ready to release, a project owner should do the following
6363
- `git push upstream master --tag v<X>.<Y>.<Z>`
6464
- Run `cargo publish` (run `cargo login` first if needed)
6565

66-
[issues]: https://github.com/gitext-rs/git2ext/issues
67-
[new issue]: https://github.com/gitext-rs/git2ext/issues/new
68-
[all issues]: https://github.com/gitext-rs/git2ext/issues?utf8=%E2%9C%93&q=is%3Aissue
69-
[travis]: https://github.com/gitext-rs/git2ext/blob/master/.travis.yml
66+
[issues]: https://github.com/gitext-rs/git2-ext/issues
67+
[new issue]: https://github.com/gitext-rs/git2-ext/issues/new
68+
[all issues]: https://github.com/gitext-rs/git2-ext/issues?utf8=%E2%9C%93&q=is%3Aissue
69+
[travis]: https://github.com/gitext-rs/git2-ext/blob/master/.travis.yml

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
2-
name = "git2ext"
2+
name = "git2-ext"
33
version = "0.0.3"
44
description = "git2 Extensions"
55
license = "MIT OR Apache-2.0"
6-
repository = "https://github.com/gitext-rs/git2ext.git"
7-
homepage = "https://github.com/gitext-rs/git2ext"
8-
documentation = "http://docs.rs/git2ext/"
6+
repository = "https://github.com/gitext-rs/git2-ext.git"
7+
homepage = "https://github.com/gitext-rs/git2-ext"
8+
documentation = "http://docs.rs/git2-ext/"
99
readme = "README.md"
1010
categories = ["command-line-interface"]
1111
keywords = ["cli", "clap"]
@@ -26,7 +26,7 @@ pre-release-replacements = [
2626
{file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
2727
{file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1},
2828
{file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
29-
{file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/gitext-rs/git2ext/compare/{{tag_name}}...HEAD", exactly=1},
29+
{file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/gitext-rs/git2-ext/compare/{{tag_name}}...HEAD", exactly=1},
3030
]
3131

3232
[dependencies]

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# git2ext
1+
# git2-ext
22

33
> git2 Extensions
44
55
[![Documentation](https://img.shields.io/badge/docs-master-blue.svg)][Documentation]
6-
![License](https://img.shields.io/crates/l/git2ext.svg)
7-
[![Crates Status](https://img.shields.io/crates/v/git2ext.svg)](https://crates.io/crates/git2ext)
6+
![License](https://img.shields.io/crates/l/git2-ext.svg)
7+
[![Crates Status](https://img.shields.io/crates/v/git2-ext.svg)](https://crates.io/crates/git2-ext)
88

99
## License
1010

@@ -22,5 +22,5 @@ submitted for inclusion in the work by you, as defined in the Apache-2.0
2222
license, shall be dual licensed as above, without any additional terms or
2323
conditions.
2424

25-
[Crates.io]: https://crates.io/crates/git2ext
26-
[Documentation]: https://docs.rs/git2ext
25+
[Crates.io]: https://crates.io/crates/git2-ext
26+
[Documentation]: https://docs.rs/git2-ext

tests/ops.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ fn cherry_pick_clean() {
77
let repo = git2::Repository::discover(temp.path()).unwrap();
88

99
{
10-
assert!(!git2ext::ops::is_dirty(&repo));
11-
let expected_head_id = git2ext::ops::head_id(&repo).unwrap();
10+
assert!(!git2_ext::ops::is_dirty(&repo));
11+
let expected_head_id = git2_ext::ops::head_id(&repo).unwrap();
1212

1313
let base = repo
1414
.find_branch("off_master", git2::BranchType::Local)
@@ -19,16 +19,16 @@ fn cherry_pick_clean() {
1919
.unwrap();
2020
let source_id = source.get().target().unwrap();
2121

22-
let dest_id = git2ext::ops::cherry_pick(&repo, base_id, source_id).unwrap();
22+
let dest_id = git2_ext::ops::cherry_pick(&repo, base_id, source_id).unwrap();
2323

2424
let source_commit = repo.find_commit(source_id).unwrap();
2525
let dest_commit = repo.find_commit(dest_id).unwrap();
26-
let actual_head_id = git2ext::ops::head_id(&repo).unwrap();
26+
let actual_head_id = git2_ext::ops::head_id(&repo).unwrap();
2727

2828
assert_ne!(dest_id, source_id);
2929
assert_eq!(dest_commit.message(), source_commit.message());
3030
assert_eq!(expected_head_id, actual_head_id);
31-
assert!(!git2ext::ops::is_dirty(&repo));
31+
assert!(!git2_ext::ops::is_dirty(&repo));
3232
}
3333

3434
temp.close().unwrap();
@@ -43,7 +43,7 @@ fn cherry_pick_conflict() {
4343
let repo = git2::Repository::discover(temp.path()).unwrap();
4444

4545
{
46-
assert!(!git2ext::ops::is_dirty(&repo));
46+
assert!(!git2_ext::ops::is_dirty(&repo));
4747

4848
let base = repo
4949
.find_branch("feature1", git2::BranchType::Local)
@@ -52,11 +52,11 @@ fn cherry_pick_conflict() {
5252
let source = repo.find_branch("master", git2::BranchType::Local).unwrap();
5353
let source_id = source.get().target().unwrap();
5454

55-
let dest_id = git2ext::ops::cherry_pick(&repo, base_id, source_id);
55+
let dest_id = git2_ext::ops::cherry_pick(&repo, base_id, source_id);
5656

5757
println!("{:#?}", dest_id);
5858
assert!(dest_id.is_err());
59-
assert!(!git2ext::ops::is_dirty(&repo));
59+
assert!(!git2_ext::ops::is_dirty(&repo));
6060
}
6161

6262
temp.close().unwrap();
@@ -71,7 +71,7 @@ fn squash_clean() {
7171
let repo = git2::Repository::discover(temp.path()).unwrap();
7272

7373
{
74-
assert!(!git2ext::ops::is_dirty(&repo));
74+
assert!(!git2_ext::ops::is_dirty(&repo));
7575

7676
let base = repo.find_branch("master", git2::BranchType::Local).unwrap();
7777
let base_id = base.get().target().unwrap();
@@ -80,10 +80,10 @@ fn squash_clean() {
8080
.unwrap();
8181
let source_id = source.get().target().unwrap();
8282

83-
let dest_id = git2ext::ops::squash(&repo, source_id, base_id).unwrap();
83+
let dest_id = git2_ext::ops::squash(&repo, source_id, base_id).unwrap();
8484

8585
println!("{:#?}", dest_id);
86-
assert!(!git2ext::ops::is_dirty(&repo));
86+
assert!(!git2_ext::ops::is_dirty(&repo));
8787
}
8888

8989
temp.close().unwrap();

0 commit comments

Comments
 (0)