Skip to content

Commit

Permalink
0.1.6 - Better dry run
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrav committed Apr 10, 2023
1 parent 7915c52 commit 8fc2e86
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 10 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.6] - 2023-04-10

### Added

- More functional `--dry` run flag;
- Preliminary push support
- SSH authentication with remote through *libgit2* still needs to be figured out.

## [0.1.5] - 2023-04-09

### Fixed
Expand Down Expand Up @@ -66,7 +74,7 @@ This release marks the first full realization of project's description.

- None


[0.1.6]: https://github.com/mbrav/git_raider/compare/0.1.5...0.1.6
[0.1.5]: https://github.com/mbrav/git_raider/compare/0.1.4...0.1.5
[0.1.4]: https://github.com/mbrav/git_raider/compare/0.1.3...0.1.4
[0.1.3]: https://github.com/mbrav/git_raider/compare/0.1.2...0.1.3
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "git_raider"
version = "0.1.5"
version = "0.1.6"
descripion = "Mass git repository search, replace and commit tool"
authors = ["mbrav <[email protected]>"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ gitraider -V
If successful, you will get the following after the end:

```text
git_raider 0.1.4
git_raider 0.1.6
```

## Run from source
Expand Down
2 changes: 1 addition & 1 deletion latest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.5
0.1.6
10 changes: 5 additions & 5 deletions src/raider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,14 +344,14 @@ mod tests {
#[test]
fn raider_new() {
let path = "./".to_string();
let raider = RepoRaider::new(&path);
let raider = RepoRaider::new(path.clone(), false);
assert_ne!(raider.path.to_str().unwrap(), path.as_str());
}

#[test]
fn raider_find_dirs() {
let path = "./".to_string();
let mut raider = RepoRaider::new(&path);
let mut raider = RepoRaider::new(path, false);

raider.find_dirs("src");
assert_ne!(raider.get_dirs().len(), 0);
Expand All @@ -360,7 +360,7 @@ mod tests {
#[test]
fn raider_find_repos() {
let path = "../".to_string();
let mut raider = RepoRaider::new(&path);
let mut raider = RepoRaider::new(path, false);

raider.find_repos();
assert_ne!(raider.get_dirs().len(), 0);
Expand All @@ -369,7 +369,7 @@ mod tests {
#[test]
fn raider_match_files() {
let path = "../".to_string();
let mut raider = RepoRaider::new(&path);
let mut raider = RepoRaider::new(path, false);

raider.find_repos();
raider.match_files("main.rs");
Expand All @@ -384,7 +384,7 @@ mod tests {
#[test]
fn raider_match_file_contents() {
let path = "../".to_string();
let mut raider = RepoRaider::new(&path);
let mut raider = RepoRaider::new(path, false);

raider.find_repos();
raider.match_files("main.rs");
Expand Down

0 comments on commit 8fc2e86

Please sign in to comment.